Fix item tag regex replacing non-english characters
This commit is contained in:
parent
000e48ca4c
commit
bfee07d5fe
@ -304,7 +304,7 @@ export class GameController
|
||||
}
|
||||
|
||||
// Check items with a tag that contains non alphanumeric characters
|
||||
const regxp = /[^a-zA-Z0-9 .]/g;
|
||||
const regxp = /([/w"\\'])/g;
|
||||
if (regxp.test(item.upd.Tag?.Name))
|
||||
{
|
||||
this.logger.warning(`Fixed item: ${item._id}s Tag value, removed invalid characters`);
|
||||
|
Loading…
Reference in New Issue
Block a user