Merge "Remove "dash" case in preprocessToObj"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 12 Mar 2018 03:06:30 +0000 (03:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 12 Mar 2018 03:06:30 +0000 (03:06 +0000)
includes/parser/Preprocessor_DOM.php
includes/parser/Preprocessor_Hash.php

index 81243f3..09ca38a 100644 (file)
@@ -794,9 +794,6 @@ class Preprocessor_DOM extends Preprocessor {
                                $stack->getCurrentPart()->eqpos = strlen( $accum );
                                $accum .= '=';
                                ++$i;
-                       } elseif ( $found == 'dash' ) {
-                               $accum .= '-';
-                               ++$i;
                        }
                }
 
index c4c0c5a..7dbf9b1 100644 (file)
@@ -744,9 +744,6 @@ class Preprocessor_Hash extends Preprocessor {
                                $accum[] = [ 'equals', [ '=' ] ];
                                $stack->getCurrentPart()->eqpos = count( $accum ) - 1;
                                ++$i;
-                       } elseif ( $found == 'dash' ) {
-                               self::addLiteral( $accum, '-' );
-                               ++$i;
                        }
                }