mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
lib/irc: add missing num range to alphaNum regexp
This commit is contained in:
parent
08578c9a21
commit
86b1030b7a
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue