commit | 7645559984a1f7cc34f1e346ed450b55278cfb3c | [log] [tgz] |
---|---|---|
author | Solomon Peachy <pizza@shaftnet.org> | Sun Jul 26 20:12:29 2020 -0400 |
committer | Solomon Peachy <pizza@shaftnet.org> | Sun Jul 26 20:12:29 2020 -0400 |
tree | e6b72615f2022fd827b9920175e5cc9e15b76028 | |
parent | 18ec035ec3c44a3d88d13837ad8f6f64f19ecb3b [diff] |
parsing: trim extra spaces from target names
diff --git a/common.php b/common.php index a66d36e..3b5540d 100644 --- a/common.php +++ b/common.php
@@ -64,6 +64,7 @@ elseif ($pos == 'phrase' && preg_match("/^([^:]+): ?(.*)$/", $line, $matches)) { $subs = explode(',' , $matches[1]); foreach($subs as $sub) { + $sub = trim($sub); $thisphrase[$pos][$sub] = $matches[2]; } }