Fix item tag regex replacing non-english characters

This commit is contained in:
Dev 2023-11-29 22:30:23 +00:00
parent 000e48ca4c
commit bfee07d5fe

View File

@ -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`);