mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Also added the caret symbol, for completeness. In this way all ascii symbols are allowed.
This commit is contained in:
parent
a7cb139238
commit
af2d854be5
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…
Reference in New Issue
Block a user