diff options
author | Cheng-Han, Wu | 2016-01-31 15:28:52 -0600 |
---|---|---|
committer | Cheng-Han, Wu | 2016-01-31 15:28:52 -0600 |
commit | ba4a7b13b33492d388e1ebdd602a744b2221bd76 (patch) | |
tree | 19ae6917bc365f4b10c145d32cf25e93854fc9bd /public | |
parent | 47668fe70afb58507c0c323d6304ae59560633d7 (diff) |
Fixed a expression bug in postProcess
Diffstat (limited to '')
-rw-r--r-- | public/js/extra.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index 6711fa2e..a6576991 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -342,7 +342,7 @@ function postProcess(code) { return "<noiframe>" + $(this).html() + "</noiframe>" }); //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++) { |