remove control characters from lastpass folder name

This commit is contained in:
Kyle Spearrin 2019-02-22 15:06:29 -05:00
parent 2b575f0c60
commit 3bdfc2bace
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export class LastPassCsvImporter extends BaseImporter implements Importer {
let folderIndex = result.folders.length;
let grouping = value.grouping;
if (grouping != null) {
grouping = grouping.replace(/\\/g, '/');
grouping = grouping.replace(/\\/g, '/').replace(/[\x00-\x1F\x7F-\x9F]/g, '');
}
const hasFolder = this.getValueOrDefault(grouping, '(none)') !== '(none)';
let addFolder = hasFolder;