From ba4a7b13b33492d388e1ebdd602a744b2221bd76 Mon Sep 17 00:00:00 2001 From: "Cheng-Han, Wu" Date: Sun, 31 Jan 2016 15:28:52 -0600 Subject: [PATCH] Fixed a expression bug in postProcess --- public/js/extra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/extra.js b/public/js/extra.js index 6711fa2e4..a65769915 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -342,7 +342,7 @@ function postProcess(code) { return "" + $(this).html() + "" }); //link should open in new window or tab - result.find('a:not([href^=#]):not([target])').attr('target', '_blank'); + result.find('a:not([href^="#"]):not([target])').attr('target', '_blank'); //update continue line numbers var linenumberdivs = result.find('.gutter.linenumber').toArray(); for (var i = 0; i < linenumberdivs.length; i++) {