Skip to content

Commit

Permalink
removed unnecessary + in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Jul 17, 2011
1 parent 8a89395 commit 2257527
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/nodes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/nodes.coffee
Expand Up @@ -1125,11 +1125,11 @@ exports.Code = class Code extends Base
if v instanceof Splat
v = new Param v, null, yes
v.splat = yes
vc = (v.compile o).replace /[\r\n]+\s*/g, ''
vc = (v.compile o).replace /[\r\n]\s*/g, ''
o.scope.parameter vc unless v.splat
vc = "#{if v.splat then '@' else '/*@*/'}#{vc}" if v.base?.asKey
if v.value
vvc = (v.value.compile o).replace /[\r\n]+\s*/g, ''
vvc = (v.value.compile o).replace /[\r\n]\s*/g, ''
vvc = "#{vvc[...27]}..." if vvc.length > 30
vvc = "#{vvc[..pos]}..." if (pos = vvc.indexOf('*/')) >= 0
vc = "#{vc}#{"/* = #{vvc}*/"}"
Expand Down

0 comments on commit 2257527

Please sign in to comment.