Skip to content

Commit 311c460

Browse files
committed
Escape slashes in hash. Fixes kswedberg#66.
1 parent b2ec212 commit 311c460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.smooth-scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
$.fn.smoothScroll.defaults = defaults;
247247

248248
function escapeSelector (str) {
249-
return str.replace(/(:|\.)/g,'\\$1');
249+
return str.replace(/(:|\.|\/)/g,'\\$1');
250250
}
251251

252252
})(jQuery);

0 commit comments

Comments
 (0)