- Commit
- 7d4b88b7a78320f95345c22aba2776fe68b6cd1f
- Parent
- 1f43f5936bb856d317686641a46388030acd8566
- Author
- John MacFarlane <fiddlosopher@gmail.com>
- Date
stmd.js: Added another regex anchor, in reMain.
My personal build of CMark ✏️
stmd.js: Added another regex anchor, in reMain.
1 file changed, 1 insertion, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | js/stmd.js | 2 | 1 | 1 |
diff --git 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