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 5ed83f9 commit 127468dCopy full SHA for 127468d
lib/url/escape.js
@@ -1,4 +1,7 @@
1
module.exports = function escape(url) {
2
+ if (typeof url !== 'string') {
3
+ return url
4
+ }
5
// If url is already wrapped in quotes, remove them
6
if (/^['"].*['"]$/.test(url)) {
7
url = url.slice(1, -1);
0 commit comments