浏览代码

fix structure identifier generation

Olivier Massot 4 月之前
父节点
当前提交
f8a32696de
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/shop/try/artist-premium.vue

+ 1 - 1
pages/shop/try/artist-premium.vue

@@ -731,7 +731,7 @@ const onStructureNameUpdated = (newName: string) => {
   if (!structureIdentifierModified.value && newName) {
     trialRequest.structureIdentifier = slugify(
       trialRequest.structureName
-    ).replace('-', '')
+    ).replace(/[-_]/g, '')
     checkSubdomainAvailabilityDebounced()
   }
 }