mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
remove control characters from lastpass folder name
This commit is contained in:
@@ -27,7 +27,7 @@ export class LastPassCsvImporter extends BaseImporter implements Importer {
|
|||||||
let folderIndex = result.folders.length;
|
let folderIndex = result.folders.length;
|
||||||
let grouping = value.grouping;
|
let grouping = value.grouping;
|
||||||
if (grouping != null) {
|
if (grouping != null) {
|
||||||
grouping = grouping.replace(/\\/g, '/');
|
grouping = grouping.replace(/\\/g, '/').replace(/[\x00-\x1F\x7F-\x9F]/g, '');
|
||||||
}
|
}
|
||||||
const hasFolder = this.getValueOrDefault(grouping, '(none)') !== '(none)';
|
const hasFolder = this.getValueOrDefault(grouping, '(none)') !== '(none)';
|
||||||
let addFolder = hasFolder;
|
let addFolder = hasFolder;
|
||||||
|
|||||||
Reference in New Issue
Block a user