Skip to content

Commit f66d4f2

Browse files
committed
Refactor some more
1 parent c3f6bd2 commit f66d4f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

script/generate-regex.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ let index = -1
3737
// Add code points to strip.
3838
while (++index < ranges.length) {
3939
const name = ranges[index]
40-
const fp = `./${name}/code-points.js`
4140
/** @type {{default: Array<number>}} */
42-
const { default: codePoints } = await import(new URL(fp, categoryBase).href)
41+
const { default: codePoints } = await import(new URL(name + '/code-points.js', categoryBase).href)
4342

4443
generator.add(codePoints)
4544
}

0 commit comments

Comments
 (0)