mirror of
https://github.com/gchq/CyberChef.git
synced 2026-02-10 01:36:53 -08:00
Fix import operations with special chars in them (#1040)
Some checks failed
Master Build, Test & Deploy / main (push) Has been cancelled
Some checks failed
Master Build, Test & Deploy / main (push) Has been cancelled
Co-authored-by: jg42526 <210032080+jg42526@users.noreply.github.com> (fixed test broken by a dependency updated elsewhere)
This commit is contained in:
parent
4e8f0c34f3
commit
0cf7bcaddc
2 changed files with 37 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue