Skip to content

Commit

Permalink
Test #472
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Mar 1, 2020
1 parent e2f23e1 commit 51a8939
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/better-regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ ruleTester.run('better-regex', rule, {
// `patter` is not `string`
'new RegExp(0)',
// No arguments
'new RegExp()'
'new RegExp()',

// #472
'/[ ;-]/g'
],
invalid: [
// Literal regex
Expand Down

0 comments on commit 51a8939

Please sign in to comment.