diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-09-06 22:46:17 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-09-06 22:46:17 -0700 |
commit | 7d4b88b7a78320f95345c22aba2776fe68b6cd1f (patch) | |
tree | aa341ba800815bdf63c3d3d4a107ff29ddc72b7d | |
parent | 1f43f5936bb856d317686641a46388030acd8566 (diff) |
stmd.js: Added another regex anchor, in reMain.
-rwxr-xr-x | js/stmd.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |