Add more tests

This commit is contained in:
uchar
2024-09-17 09:39:07 +03:30
parent 68e7642827
commit 7e6a84ce19
2 changed files with 37 additions and 4 deletions

View File

@ -46,12 +46,12 @@ export class KcSanitizerPolicy {
public static readonly NAME = new RegExp("[a-zA-Z0-9\\-_\\$]+");
public static readonly ALIGN = new RegExp(
"center|left|right|justify|char",
"\\b(center|left|right|justify|char)\\b",
"i" // Case-insensitive flag
);
public static readonly VALIGN = new RegExp(
"baseline|bottom|middle|top",
"\\b(baseline|bottom|middle|top)\\b",
"i" // Case-insensitive flag
);