File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
58
58
- Ensure nested ` HshPtn ` nodes use braces.
59
59
- Force using braces if the block is within a ` Binary ` within the predicate of a loop or conditional.
60
60
- Make sure ` StringLiteral ` and ` StringEmbExpr ` know that they can be extended by heredocs.
61
+ - Ensure ` Int ` nodes with preceding unary ` + ` get formatted properly.
61
62
62
63
### Removed
63
64
Original file line number Diff line number Diff line change @@ -7220,7 +7220,7 @@ def child_nodes
7220
7220
end
7221
7221
7222
7222
def format ( q )
7223
- if !value . start_with? ( "0" ) && value . length >= 5 && !value . include? ( "_" )
7223
+ if !value . start_with? ( / \+ ?0/ ) && value . length >= 5 && !value . include? ( "_" )
7224
7224
# If it's a plain integer and it doesn't have any underscores separating
7225
7225
# the values, then we're going to insert them every 3 characters
7226
7226
# starting from the right.
You can’t perform that action at this time.
0 commit comments