2
0
mirror of https://github.com/gchq/CyberChef synced 2026-02-17 09:59:21 +00:00

Fix import operations with special chars in them (#1040)

Co-authored-by: jg42526 <210032080+jg42526@users.noreply.github.com> (fixed test broken by a dependency updated elsewhere)
This commit is contained in:
d98762625
2026-02-04 16:46:30 +00:00
committed by GitHub
parent 4e8f0c34f3
commit 0cf7bcaddc
2 changed files with 37 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ export function removeSubheadingsFromArray(array) {
* @param str
*/
export function sanitise(str) {
return str.replace(/ /g, "").toLowerCase();
return str.replace(/[/\s.-]/g, "").toLowerCase();
}