forked from CringeStudios/gamja
lib/irc: add missing num range to alphaNum regexp
This commit is contained in:
parent
08578c9a21
commit
86b1030b7a
@ -258,7 +258,7 @@ export function parseTargetPrefix(s, allowedPrefixes = STD_MEMBERSHIPS) {
|
|||||||
|
|
||||||
const alphaNum = (() => {
|
const alphaNum = (() => {
|
||||||
try {
|
try {
|
||||||
return new RegExp(/^\p{L}$/, "u");
|
return new RegExp(/^[\p{L}0-9]$/, "u");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return new RegExp(/^[a-zA-Z0-9]$/, "u");
|
return new RegExp(/^[a-zA-Z0-9]$/, "u");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user