diff --git a/changelog.md b/changelog.md index 216033c..e878b34 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +1.3.1 +=============================== +- Fix create project name + 1.3.0 =============================== - Added import Teams diff --git a/package.json b/package.json index fa1f473..b9d1936 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@modxclub/import-old-site", "description": "Importer for modxclub.ru", - "version": "1.3.0", + "version": "1.3.1", "main": "src/", "files": [ "src" diff --git a/src/modules/processor/index.mjs b/src/modules/processor/index.mjs index cec0be2..101da49 100644 --- a/src/modules/processor/index.mjs +++ b/src/modules/processor/index.mjs @@ -1938,6 +1938,8 @@ export default class ImportProcessor extends PrismaProcessor { uri = this.prepareUri(uri); + name = longtitle && longtitle.trim() || name; + name = name.trim().replace(/^\/|\/$/g, ''); let url = name;