Merge branch 'master' of https://github.com/hoppscotch/hoppscotch into master

This commit is contained in:
Liyas Thomas
2020-09-06 14:27:20 +05:30
10 changed files with 2 additions and 0 deletions

View File

@@ -139,6 +139,8 @@ export default {
// Do nothing
}
} else if (collections.info && collections.info.schema.includes("v2.1.0")) {
//replace the variables, postman uses {{var}}, Hoppscotch uses <<var>>
collections = JSON.parse(content.replaceAll(/{{([a-z]+)}}/gi, '<<$1>>'))
collections = this.parsePostmanCollection(collections)
} else {
return this.failedImport()