Changeset View
Changeset View
Standalone View
Standalone View
src/parser/ArcanistCommentRemover.php
Context not available. | |||||
$lines = array_reverse($lines); | $lines = array_reverse($lines); | ||||
foreach ($lines as $key => $line) { | foreach ($lines as $key => $line) { | ||||
if (preg_match('/^#/', $line)) { | if (@preg_match('/^#/', $line)) { | ||||
unset($lines[$key]); | unset($lines[$key]); | ||||
continue; | continue; | ||||
} | } | ||||
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