Skip to content

Commit

Permalink
Fix trl call conversion regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nsams committed Apr 5, 2017
1 parent b629281 commit fe3a47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upgrade-to-5,0.php
Expand Up @@ -49,7 +49,7 @@
$c = file_get_contents($file);
$origC = $c;
$c = str_replace('require(\'kwf/', 'require(\'kwf/commonjs/', $c);
$c = preg_replace('#(kwfTrl|t).trl(p?c?(Kwf)?)\(#', '__trl$2(', $c);
$c = preg_replace('#(kwfTrl|t)\.trl(p?c?(Kwf)?)\(#', '__trl$2(', $c);
$c = preg_replace("#var (kwfTrl|t) *= *require\('kwf/commonjs/trl'\);\n#", '', $c);
$c = preg_replace("#^ *kwfTrl: *kwfTrl,? *\n#m", '', $c);
$c = preg_replace("#^ *ret.kwfTrl *= *kwfTrl; *\n#m", '', $c);
Expand Down

0 comments on commit fe3a47c

Please sign in to comment.