From: Michael Wallner Date: Fri, 25 Mar 2016 14:40:22 +0000 (+0100) Subject: fix linkage of NS constants X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4887931d502e44a0fe0d3fcc77f1efe72ca3dd79;p=mdref%2Fmdref fix linkage of NS constants --- diff --git a/public/index.js b/public/index.js index 7c5a82c..4878936 100644 --- a/public/index.js +++ b/public/index.js @@ -99,7 +99,7 @@ $(function() { } if (-1 !== (j = s.lastIndexOf("\\")) && s.substr(j+1,1) !== "n") { t = s.substring(j+1); - if (!mdref.is_constant(t) || s.match(/\\/).length <= 1) { + if (!mdref.is_constant(t) || s.match(/\\/g).length <= 1) { return ""; } return "";