Fixed bugs & added/updated languages!

This commit is contained in:
DJj123dj
2024-08-23 23:19:44 +02:00
parent 177ab95dba
commit d5295a9480
9 changed files with 510 additions and 15 deletions
+1 -1
View File
@@ -1160,7 +1160,7 @@ export class ODCheckerCustomStructure_HexColor extends ODCheckerStringStructure
if (typeof value != "string") return false
else if (emptyAllowed && value.length == 0){
return true
}else if ((!allowShortForm && !/^#[a-f0-9]{6}$/.test(value)) || (allowShortForm && !/^#[a-f0-9]{6}$/.test(value) && !/^#[a-f0-9]{3}$/.test(value))){
}else if ((!allowShortForm && !/^#[a-fA-F0-9]{6}$/.test(value)) || (allowShortForm && !/^#[a-fA-F0-9]{6}$/.test(value) && !/^#[a-fA-F0-9]{3}$/.test(value))){
checker.createMessage("openticket:color-invalid","error","This is an invalid hex color!",lt,null,[],this.id,(this.options.docs ?? null))
return false
}else return true