Index: trunk/extensions/Translate/Exporters.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | |
89 | 89 | $headerP = " |
90 | 90 | .*? # Ungreedily eat header |
91 | | - \$$var \s* = \s* array\(\);"; |
| 91 | + \\$$var \s* = \s* array\(\);"; |
92 | 92 | /* |
93 | 93 | * x to have nice syntax |
94 | 94 | * u for utf-8 |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | list( , $header, $data) = $matches; |
105 | 105 | |
106 | 106 | $sectionP = '(?: /\*\* .*? \*/ )? (?: ( [^\n]*? \S;\n ) | (?: .*? \n\);\n\n ) )'; |
107 | | - $codeP = "\$$var\[' (.*?) '\]"; |
| 107 | + $codeP = "\\$$var\[' (.*?) '\]"; |
108 | 108 | |
109 | 109 | $sectionMatches = array(); |
110 | 110 | if ( !preg_match_all( "~$sectionP~xsu", $data, $sectionMatches, PREG_SET_ORDER ) ) { |