X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=public%2Findex.js;h=4878936a383649981948a0b3645b81534c10b3f3;hb=4887931d502e44a0fe0d3fcc77f1efe72ca3dd79;hp=93128bf2542a5d1817b2111d742302c3bf081c36;hpb=fc6b583627d21a26de8268df800fd44fbb9ac30d;p=mdref%2Fmdref diff --git a/public/index.js b/public/index.js index 93128bf..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)) { + if (!mdref.is_constant(t) || s.match(/\\/g).length <= 1) { return ""; } return "";