mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
nested folders use /
This commit is contained in:
parent
20ac5a98a3
commit
6dc13e8579
@ -38,7 +38,7 @@ export class KeePass2XmlImporter extends BaseImporter implements Importer {
|
||||
|
||||
if (!isRootNode) {
|
||||
if (groupName !== '') {
|
||||
groupName += ' > ';
|
||||
groupName += '/';
|
||||
}
|
||||
const nameEl = this.querySelectorDirectChild(node, 'Name');
|
||||
groupName += nameEl == null ? '-' : nameEl.textContent;
|
||||
|
@ -19,7 +19,7 @@ export class KeePassXCsvImporter extends BaseImporter implements Importer {
|
||||
|
||||
value.Group = !this.isNullOrWhitespace(value.Group) && value.Group.startsWith('Root/') ?
|
||||
value.Group.replace('Root/', '') : value.Group;
|
||||
const groupName = !this.isNullOrWhitespace(value.Group) ? value.Group.split('/').join(' > ') : null;
|
||||
const groupName = !this.isNullOrWhitespace(value.Group) ? value.Group : null;
|
||||
this.processFolder(result, groupName);
|
||||
|
||||
const cipher = this.initLoginCipher();
|
||||
|
@ -24,7 +24,7 @@ export class PasswordSafeXmlImporter extends BaseImporter implements Importer {
|
||||
Array.from(entries).forEach((entry) => {
|
||||
const group = this.querySelectorDirectChild(entry, 'group');
|
||||
const groupText = group != null && !this.isNullOrWhitespace(group.textContent) ?
|
||||
group.textContent.split('.').join(' > ') : null;
|
||||
group.textContent.split('.').join('/') : null;
|
||||
this.processFolder(result, groupText);
|
||||
|
||||
const title = this.querySelectorDirectChild(entry, 'title');
|
||||
|
@ -16,7 +16,7 @@ export class RoboFormCsvImporter extends BaseImporter implements Importer {
|
||||
results.forEach((value) => {
|
||||
const folder = !this.isNullOrWhitespace(value.Folder) && value.Folder.startsWith('/') ?
|
||||
value.Folder.replace('/', '') : value.Folder;
|
||||
const folderName = !this.isNullOrWhitespace(folder) ? folder.split('/').join(' > ') : null;
|
||||
const folderName = !this.isNullOrWhitespace(folder) ? folder : null;
|
||||
this.processFolder(result, folderName);
|
||||
|
||||
const cipher = this.initLoginCipher();
|
||||
|
@ -71,7 +71,7 @@ export class StickyPasswordXmlImporter extends BaseImporter implements Importer
|
||||
return groupText;
|
||||
}
|
||||
if (!this.isNullOrWhitespace(groupText)) {
|
||||
groupText = ' > ' + groupText;
|
||||
groupText = '/' + groupText;
|
||||
}
|
||||
groupText = group.getAttribute('Name') + groupText;
|
||||
return this.buildGroupText(doc, group.getAttribute('ParentID'), groupText);
|
||||
|
Loading…
Reference in New Issue
Block a user