mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-27 15:40:00 +00:00
fix matching hr ---- (v 3.1.13)
Change-Id: I7ea6fa891d2c53da4ac9bd62319dad702a11b8d7
This commit is contained in:
parent
e681dc6ce2
commit
491f186e14
|
@ -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]"
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue