mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Merge pull request #1692 from kasperpeulen/dollarfix
Allow dollar sign for inline dialects
This commit is contained in:
commit
f8acffb73c
2
vendor/assets/javascripts/better_markdown.js
vendored
2
vendor/assets/javascripts/better_markdown.js
vendored
@ -335,7 +335,7 @@
|
|||||||
// __foo__ is reserved and not a pattern
|
// __foo__ is reserved and not a pattern
|
||||||
if ( i.match( /^__.*__$/) )
|
if ( i.match( /^__.*__$/) )
|
||||||
continue;
|
continue;
|
||||||
var l = i.replace( /([\\.*+?|()\[\]{}])/g, "\\$1" )
|
var l = i.replace( /([\\.*+?^$|()\[\]{}])/g, "\\$1" )
|
||||||
.replace( /\n/, "\\n" );
|
.replace( /\n/, "\\n" );
|
||||||
patterns.push( i.length === 1 ? l : "(?:" + l + ")" );
|
patterns.push( i.length === 1 ? l : "(?:" + l + ")" );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user