Skip to content

Commit acc1d3a

Browse files
committed
up
1 parent bf2a79f commit acc1d3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/processing_file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
}
4444
} else {
4545
const match_arr = rule.trim().split("=")
46-
const regex = new RegExp('(^|\\s)'+match_arr[0].toString()+'(?=\\s|$)', 'gi');
46+
const regex = new RegExp('(^|\\s|\\p{P})' + match_arr[0].toString() + '(?=\\p{P}|\\s|$)', 'giu');
4747
fix_text = fix_text.replace(regex, '$1'+match_arr[1].toString())
4848
}
4949
}

0 commit comments

Comments
 (0)