Skip to content

Commit 29e4f0b

Browse files
committed
Change regex to [a-z]+(?:_[a-z]+)*
1 parent 0aadf3e commit 29e4f0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/ckeditor5-woltlab-smiley/src/woltlabsmileyui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export function getRegexExp(): RegExp {
441441
const openAfterCharacters = env.features.isRegExpUnicodePropertySupported
442442
? "\\p{Ps}\\p{Pi}\"'"
443443
: "\\(\\[{\"'";
444-
const pattern = `(?:^|[ ${openAfterCharacters}])(:)([a-z_]+)$`;
444+
const pattern = `(?:^|[ ${openAfterCharacters}])(:)([a-z]+(?:_[a-z]+)*)$`;
445445
return new RegExp(pattern, "u");
446446
}
447447

0 commit comments

Comments
 (0)