lib/irc: add missing num range to alphaNum regexp

This commit is contained in:
Simon Ser 2022-02-25 11:36:43 +01:00
parent 08578c9a21
commit 86b1030b7a

View file

@ -258,7 +258,7 @@ export function parseTargetPrefix(s, allowedPrefixes = STD_MEMBERSHIPS) {
const alphaNum = (() => {
try {
return new RegExp(/^\p{L}$/, "u");
return new RegExp(/^[\p{L}0-9]$/, "u");
} catch (e) {
return new RegExp(/^[a-zA-Z0-9]$/, "u");
}