From d8cf5c75256b86da96102a7f2032cd0fe7ba3abd Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Thu, 1 Aug 2019 14:36:37 +0300 Subject: [PATCH] getPathWithNoTrailingSlash defaults --- src/lib/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/url.js b/src/lib/url.js index 0452ab69..d68c640d 100644 --- a/src/lib/url.js +++ b/src/lib/url.js @@ -1,4 +1,4 @@ -function getPathWithNoTrailingSlash(path) { +function getPathWithNoTrailingSlash(path='') { path = path.charAt(path.length - 1) === '/' ? path.substr(0, path.length - 1) : path