Skip to content

Commit

Permalink
Allow auto-parameters to support negative numbers (literally just mis…
Browse files Browse the repository at this point in the history
…sing a "-" in the RegExp)
  • Loading branch information
Rycochet committed Feb 16, 2017
1 parent 6e21e7b commit 465e84c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion velocity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3454,7 +3454,7 @@
var cStart = startValue[iStart],
cEnd = endValue[iEnd];

if (/[\d\.]/.test(cStart) && /[\d\.]/.test(cEnd)) {
if (/[\d\.-]/.test(cStart) && /[\d\.-]/.test(cEnd)) {
var tStart = cStart, // temporary character buffer
tEnd = cEnd, // temporary character buffer
dotStart = ".", // Make sure we can only ever match a single dot in a decimal
Expand Down
Loading

0 comments on commit 465e84c

Please sign in to comment.