From: Michael Wallner Date: Mon, 20 Jul 2015 12:46:22 +0000 (+0200) Subject: fix class vs constant issue X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=17dc7637588fb5d34bdc13e17e52db49f02bd3d8;p=mdref%2Fmdref fix class vs constant issue --- 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 "";