summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-09-06 22:46:17 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-09-06 22:46:17 -0700
commit7d4b88b7a78320f95345c22aba2776fe68b6cd1f (patch)
treeaa341ba800815bdf63c3d3d4a107ff29ddc72b7d
parent1f43f5936bb856d317686641a46388030acd8566 (diff)
stmd.js: Added another regex anchor, in reMain.
-rwxr-xr-xjs/stmd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/stmd.js b/js/stmd.js
index 9b144da..b4a305e 100755
--- a/js/stmd.js
+++ b/js/stmd.js
@@ -71,7 +71,7 @@ var reHrule = /^(?:(?:\* *){3,}|(?:_ *){3,}|(?:- *){3,}) *$/;
// Matches a character with a special meaning in markdown,
// or a string of non-special characters.
-var reMain = /[\n`\[\]\\!<&*_]|[^\n`\[\]\\!<&*_]+/m;
+var reMain = /^(?:[\n`\[\]\\!<&*_]|[^\n`\[\]\\!<&*_]+)/m;
// UTILITY FUNCTIONS