Skip to content

Commit 5f3687a

Browse files
committed
fixes dlclark#83 - fix dot when using EcmaScript and Singleline options together - now with code
1 parent 636cbb0 commit 5f3687a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

syntax/parser.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,10 @@ func (p *parser) scanRegex() (*regexNode, error) {
553553
}
554554

555555
case '.':
556-
if p.useOptionE() {
557-
p.addUnitSet(ECMAAnyClass())
558-
} else if p.useOptionS() {
556+
if p.useOptionS() {
559557
p.addUnitSet(AnyClass())
558+
} else if p.useOptionE() {
559+
p.addUnitSet(ECMAAnyClass())
560560
} else {
561561
p.addUnitNotone('\n')
562562
}

0 commit comments

Comments
 (0)