Skip to content

Commit 979adac

Browse files
committed
fix: \w also matches 0-9
1 parent 6a435ec commit 979adac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/char-set.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ export const nonDigitChars = complement(digitChars)
381381
export const wordChars = [
382382
charRange('a', 'z'),
383383
charRange('A', 'Z'),
384+
charRange('0', '9'),
384385
singleton('_')
385386
].reduce(union)
386387

0 commit comments

Comments
 (0)