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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user