Skip to content

Commit a5805c2

Browse files
committed
add more test cases
1 parent 3877f8b commit a5805c2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/fixtures/modifiers.js

+15
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,30 @@ const modifiersFixtures = [
161161
'pattern': '(?m:^[a-z])',
162162
'expected': '(?:(?:^|(?<=[\\n\\r\\u2028\\u2029]))[a-z])',
163163
},
164+
{
165+
'pattern': '(?m:^[a-z])',
166+
'options': { modifiers: false },
167+
'expected': '(?m:^[a-z])',
168+
},
164169
{
165170
'pattern': '(?m:[a-z]$)',
166171
'expected': '(?:[a-z](?:$|(?=[\\n\\r\\u2028\\u2029])))',
167172
},
173+
{
174+
'pattern': '(?m:[a-z]$)',
175+
'options': { modifiers: false },
176+
'expected': '(?m:[a-z]$)',
177+
},
168178
// +s
169179
{
170180
'pattern': '(?s:.)',
171181
'expected': '(?:[^])',
172182
},
183+
{
184+
'pattern': '(?s:.)',
185+
'options': { modifiers: false },
186+
'expected': '(?s:.)',
187+
},
173188
// -i
174189
{
175190
'pattern': '(?-i:a)(a)',

0 commit comments

Comments
 (0)