From 3ea7e6870a2ed3bbc54c19755314b6df5a57634a Mon Sep 17 00:00:00 2001 From: Yuming Cao Date: Sat, 17 Jan 2015 18:02:11 -0500 Subject: [PATCH] make buildinlinepattern support for '/' --- src/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.js b/src/parser.js index 0b2b98bb..a6f133ff 100644 --- a/src/parser.js +++ b/src/parser.js @@ -183,7 +183,7 @@ define(['./markdown_helpers', './core'], function(MarkdownHelpers, Markdown) { // __foo__ is reserved and not a pattern if ( i.match( /^__.*__$/) ) continue; - var l = i.replace( /([\\.*+?^$|()\[\]{}])/g, "\\$1" ) + var l = i.replace( /([\/\\.*+?^$|()\[\]{}])/g, "\\$1" ) .replace( /\n/, "\\n" ); patterns.push( i.length === 1 ? l : "(?:" + l + ")" ); }