Changeset View
Changeset View
Standalone View
Standalone View
src/ref/ArcanistRepositoryRef.php
Context not available. | |||||
)); | )); | ||||
foreach ($params as $key => $value) { | foreach ($params as $key => $value) { | ||||
if (!strlen($value)) { | if (!@strlen($value)) { | ||||
unset($params[$key]); | unset($params[$key]); | ||||
} | } | ||||
} | } | ||||
Context not available. | |||||
$ref_name = $ref->getName(); | $ref_name = $ref->getName(); | ||||
foreach ($rules as $rule) { | foreach ($rules as $rule) { | ||||
$matches = null; | $matches = null; | ||||
if (preg_match('(^regexp\\((.*)\\)\z)', $rule, $matches)) { | if (@preg_match('(^regexp\\((.*)\\)\z)', $rule, $matches)) { | ||||
if (preg_match($matches[1], $ref_name)) { | if (@preg_match($matches[1], $ref_name)) { | ||||
return true; | return true; | ||||
} | } | ||||
} else { | } else { | ||||
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