Skip to content

Commit c12b725

Browse files
authored
fix(expect-expect): use u flag in regex (#532)
1 parent ff25588 commit c12b725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/expect-expect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function matchesAssertFunctionName(
3131
.split('.')
3232
.map(x => {
3333
if (x === '**') return '[a-z\\.]*';
34-
return x.replace(/\*/g, '[a-z]*');
34+
return x.replace(/\*/gu, '[a-z]*');
3535
})
3636
.join('\\.')}(\\.|$)`,
3737
'ui',

0 commit comments

Comments
 (0)