You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/12/06 15:31:14 UTC
[whimsy] branch master updated: ruby: fix spelling (#174)
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 98ea1421 ruby: fix spelling (#174)
98ea1421 is described below
commit 98ea142194415284afaa610f315f4f068e17e731
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Wed Dec 7 01:31:09 2022 +1000
ruby: fix spelling (#174)
Does spelling matter in code variable names?
---
www/board/agenda/views/pages/report.js.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/www/board/agenda/views/pages/report.js.rb b/www/board/agenda/views/pages/report.js.rb
index d2e41252..4361e275 100644
--- a/www/board/agenda/views/pages/report.js.rb
+++ b/www/board/agenda/views/pages/report.js.rb
@@ -140,19 +140,19 @@ class Report < Vue
# find long, breakable lines
regex = Regexp.new(/(\&\w+;|.){80}.+/, 'g')
result = nil
- indicies = [];
+ indices = [];
while result = regex.exec(text)
line = result[0]
break if line.gsub(/\&\w+;/, '.').length < 80
lastspace = /^.*\s\S/.exec(line)
if lastspace and lastspace[0].gsub(/\&\w+;/, '.').length - 1 > 40
- indicies.unshift([line, result.index])
+ indices.unshift([line, result.index])
end
end
# reflow each line found
- indicies.each do |info|
+ indices.each do |info|
line = info[0]
index = info[1]
replacement = '<span class="hilite" title="reflowed">' +