Skip to content

Commit

Permalink
fix(expect-expect): use u flag in regex (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Feb 7, 2020
1 parent ff25588 commit c12b725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/expect-expect.ts
Expand Up @@ -31,7 +31,7 @@ function matchesAssertFunctionName(
.split('.')
.map(x => {
if (x === '**') return '[a-z\\.]*';
return x.replace(/\*/g, '[a-z]*');
return x.replace(/\*/gu, '[a-z]*');
})
.join('\\.')}(\\.|$)`,
'ui',
Expand Down

0 comments on commit c12b725

Please sign in to comment.