Skip to content

Commit

Permalink
fixes dlclark#83 - fix dot when using EcmaScript and Singleline optio…
Browse files Browse the repository at this point in the history
…ns together - now with code
  • Loading branch information
dlclark committed Aug 5, 2024
1 parent 636cbb0 commit 5f3687a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntax/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,10 @@ func (p *parser) scanRegex() (*regexNode, error) {
}

case '.':
if p.useOptionE() {
p.addUnitSet(ECMAAnyClass())
} else if p.useOptionS() {
if p.useOptionS() {
p.addUnitSet(AnyClass())
} else if p.useOptionE() {
p.addUnitSet(ECMAAnyClass())
} else {
p.addUnitNotone('\n')
}
Expand Down

0 comments on commit 5f3687a

Please sign in to comment.