Fix import operations with special chars in them (#1040)
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:
d98762625 2026-02-04 16:46:30 +00:00 committed by GitHub
parent 4e8f0c34f3
commit 0cf7bcaddc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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();
}