Merge branch 'craft' into 'master'

HOTFIX: Remove the global flag of the crafting description regexes

See merge request 
This commit is contained in:
BondageProjects 2025-03-20 00:45:13 +00:00
commit ac4369397c

View file

@ -208,14 +208,14 @@ var CraftingDescription = {
* Note the exclusion of control characters (except Newline aka `\n`), `§` (`\xA7`) and `` (`\xB6`).
* @readonly
*/
Pattern: /^([\n\x20-\xA6\xA8-\xB5\xB7-\uFFFF]+)?$/g,
Pattern: /^([\n\x20-\xA6\xA8-\xB5\xB7-\uFFFF]+)?$/,
/**
* Regex for representing legal extended ASCII characters.
* Note the exclusion of control characters (except Newline aka `\n`), `§` (`\xA7`) and `` (`\xB6`).
* @readonly
*/
PatternASCII: /^([\n\x20-\xA6\xA8-\xB5\xB7-\xFF]+)?$/g,
PatternASCII: /^([\n\x20-\xA6\xA8-\xB5\xB7-\xFF]+)?$/,
/**
* Decode and return the passed string if it consists of UTF16-encoded UTF8 characters.