Skip to content

Commit

Permalink
improve tools/generate-regex.js
Browse files Browse the repository at this point in the history
  • Loading branch information
staltz committed Jul 27, 2021
1 parent df2e17b commit 21992f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/generate-regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ const regenerate = require('regenerate');
const codePoints = require('@unicode/unicode-13.0.0/General_Category/Letter/code-points.js');

const set = regenerate(codePoints);
console.log(set.toRegExp());
console.log(new RegExp(`(${set.toString()})+`, 'gi'));

0 comments on commit 21992f3

Please sign in to comment.