Added pipe to escaped symbols of jQuery selector

Pipe symbol needs to be escaped in jQuery selector.
This symbol is added when multiple methods are allowed for a route.
e.g /api/doc#get|post--...
This commit is contained in:
staurand 2015-06-17 11:48:31 +02:00
parent c7909c576e
commit a967fce6c7

View File

@ -86,7 +86,7 @@
}; };
$(window).load(function() { $(window).load(function() {
var id = getHash().substr(1).replace( /([:\.\[\]\{\}])/g, "\\$1"); var id = getHash().substr(1).replace( /([:\.\[\]\{\}|])/g, "\\$1");
var elem = $('#' + id); var elem = $('#' + id);
if (elem.length) { if (elem.length) {
setTimeout(function() { setTimeout(function() {