1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-01-08 05:17:54 -05:00

Sonar Cleanup - Phase 8

This commit is contained in:
Ean Milligan (Bastion)
2022-05-22 17:30:30 -04:00
parent 764b8c103b
commit bbba797dc3
3 changed files with 79 additions and 50 deletions

View File

@ -62,7 +62,7 @@ export const compareOrigidx = (a: RollSet, b: RollSet): number => {
// escapeCharacters escapes all characters listed in esc
export const escapeCharacters = (str: string, esc: string): string => {
// Loop thru each esc char one at a time
for (const e of esc) {
for (const e of esc) {
log(LT.LOG, `Escaping character ${e} | ${str}, ${esc}`);
// Create a new regex to look for that char that needs replaced and escape it
const temprgx = new RegExp(`[${e}]`, 'g');