fix matching hr ---- (v 3.1.13)

Change-Id: I7ea6fa891d2c53da4ac9bd62319dad702a11b8d7
This commit is contained in:
Pavel Astakhov 2015-08-14 12:03:41 +06:00
parent e681dc6ce2
commit 491f186e14
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "CodeMirror",
"version": "3.1.12",
"version": "3.1.13",
"author": [
"[https://www.mediawiki.org/wiki/User:Pastakhov Pavel Astakhov]",
"[https://www.mediawiki.org/wiki/User:Florianschmidtwelzow Florian Schmidt]"

View file

@ -634,7 +634,7 @@ CodeMirror.defineMode( 'mediawiki', function( config/*, parserConfig */ ) {
ch = stream.next();
switch ( ch ) {
case '-':
if ( stream.match( '---' ) ) {
if ( stream.match( /----*/ ) ) {
return 'mw-hr';
}
break;