X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=public%2Findex.js;h=7c5a82c24043d6d5da63e41c3dfb5b1b631bd4aa;hb=904fc60f05894d6207e9ae85abda8c94283f7d28;hp=93128bf2542a5d1817b2111d742302c3bf081c36;hpb=fc6b583627d21a26de8268df800fd44fbb9ac30d;p=mdref%2Fmdref diff --git a/public/index.js b/public/index.js index 93128bf..7c5a82c 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(/\\/).length <= 1) { return ""; } return "";