瀏覽代碼

Handle null value in createDeepLinkPath

bubble
Owen Conti 7 年之前
父節點
當前提交
840912cb56
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/core/utils.js

+ 1
- 1
src/core/utils.js 查看文件

@@ -652,5 +652,5 @@ export const shallowEqualKeys = (a,b, keys) => {
})
}

export const createDeepLinkPath = (str) => str.replace(/\s/g, "_")
export const createDeepLinkPath = (str) => str ? str.replace(/\s/g, "_") : ""
export const escapeDeepLinkPath = (str) => cssEscape( createDeepLinkPath(str) )

Loading…
取消
儲存