Skip to content

Commit

Permalink
Refactor some more
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 27, 2022
1 parent c3f6bd2 commit f66d4f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script/generate-regex.js
Expand Up @@ -37,9 +37,8 @@ let index = -1
// Add code points to strip.
while (++index < ranges.length) {
const name = ranges[index]
const fp = `./${name}/code-points.js`
/** @type {{default: Array<number>}} */
const { default: codePoints } = await import(new URL(fp, categoryBase).href)
const { default: codePoints } = await import(new URL(name + '/code-points.js', categoryBase).href)

generator.add(codePoints)
}
Expand Down

0 comments on commit f66d4f2

Please sign in to comment.