Changeset View
Changeset View
Standalone View
Standalone View
src/repository/graph/query/ArcanistSimpleCommitGraphQuery.php
Context not available. | |||||
$edges = preg_split('(\s+)', trim($corpus)); | $edges = preg_split('(\s+)', trim($corpus)); | ||||
foreach ($edges as $edge) { | foreach ($edges as $edge) { | ||||
$matches = null; | $matches = null; | ||||
$ok = preg_match('(^(?P<parent>\S+)>(?P<child>\S+)\z)', $edge, $matches); | $ok = @preg_match('(^(?P<parent>\S+)>(?P<child>\S+)\z)', $edge, $matches); | ||||
if (!$ok) { | if (!$ok) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0