diff --git a/src/javascripts/jquery.tocify.js b/src/javascripts/jquery.tocify.js index d39287c..147f51f 100644 --- a/src/javascripts/jquery.tocify.js +++ b/src/javascripts/jquery.tocify.js @@ -358,6 +358,11 @@ hashValue = hashValue.replace(/--/g, "-"); } + // fix colon-space instances + while (hashValue.indexOf(":-") > -1) { + hashValue = hashValue.replace(/:-/g, "-"); + } + } else if (typeof hashGeneratorOption === "function") { // call the function