We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6010245 commit ae5ad48Copy full SHA for ae5ad48
src/core/utils.js
@@ -675,5 +675,5 @@ export function getAcceptControllingResponse(responses) {
675
return suitable2xxResponse || suitableDefaultResponse
676
}
677
678
-export const createDeepLinkPath = (str) => str ? str.replace(/\s/g, "_") : ""
+export const createDeepLinkPath = (str) => typeof str == "string" || str instanceof String ? str.trim().replace(/\s/g, "_") : ""
679
export const escapeDeepLinkPath = (str) => cssEscape( createDeepLinkPath(str) )
0 commit comments