Mark Scherer 9 年之前
父节点
当前提交
4105422c9c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Vendor/Soros/Soros.php

+ 2 - 1
Vendor/Soros/Soros.php

@@ -60,7 +60,8 @@ class Soros {
 			$source = str_replace("__numbertext__", "0+(0|[1-9]\\d*) $1\n", $source);
 		}
 
-		foreach (split(";", $source) as $s) {
+		$pieces = explode(";", $source);
+		foreach ($pieces as $s) {
 			if ($s != "" && preg_match("/^\\s*(\"[^\"]*\"|[^\\s]*)\\s*(.*[^\\s])?\\s*$/", $s, $sp) > 0) {
 				$s = self::translate(preg_replace("/\"$/", "", preg_replace("/^\"/", "", $sp[1], 1), 1), $this->c, $this->m, "");
 				$s = str_replace($this->slash[0], "\\\\", $s);