Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
STRd6 committed Oct 14, 2022
1 parent 1dfa23b commit 2fd2a30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffeescript/nodes.js

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

2 changes: 1 addition & 1 deletion src/nodes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5772,7 +5772,7 @@ LEVEL_ACCESS = 6 # ...[0]
# Tabs are two spaces for pretty printing.
TAB = ' '

SIMPLENUM = /^[+-]?\d+$/
SIMPLENUM = /^[+-]?(?:\d(?:_?\d)*)+$/
SIMPLE_STRING_OMIT = /\s*\n\s*/g
LEADING_BLANK_LINE = /^[^\n\S]*\n/
TRAILING_BLANK_LINE = /\n[^\n\S]*$/
Expand Down
1 change: 1 addition & 0 deletions test/numbers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ test "Parser recognises binary numbers", ->
test "call methods directly on numbers", ->
eq 4, 4.valueOf()
eq '11', 4.toString 3
eq '1000', 1_000.toString()

eq -1, 3 -4

Expand Down

0 comments on commit 2fd2a30

Please sign in to comment.