|
@@ 1130-1130 (lines=1) @@
|
| 1127 |
|
private function nodeContainsGroup ($line) { |
| 1128 |
|
$symbolsForReference = 'A-z0-9_\-'; |
| 1129 |
|
if (strpos($line, '&') === false && strpos($line, '*') === false) return false; // Please die fast ;-) |
| 1130 |
|
if ($line[0] == '&' && preg_match('/^(&['.$symbolsForReference.']+)/', $line, $matches)) return $matches[1]; |
| 1131 |
|
if ($line[0] == '*' && preg_match('/^(\*['.$symbolsForReference.']+)/', $line, $matches)) return $matches[1]; |
| 1132 |
|
if (preg_match('/(&['.$symbolsForReference.']+)$/', $line, $matches)) return $matches[1]; |
| 1133 |
|
if (preg_match('/(\*['.$symbolsForReference.']+$)/', $line, $matches)) return $matches[1]; |
|
@@ 1131-1131 (lines=1) @@
|
| 1128 |
|
$symbolsForReference = 'A-z0-9_\-'; |
| 1129 |
|
if (strpos($line, '&') === false && strpos($line, '*') === false) return false; // Please die fast ;-) |
| 1130 |
|
if ($line[0] == '&' && preg_match('/^(&['.$symbolsForReference.']+)/', $line, $matches)) return $matches[1]; |
| 1131 |
|
if ($line[0] == '*' && preg_match('/^(\*['.$symbolsForReference.']+)/', $line, $matches)) return $matches[1]; |
| 1132 |
|
if (preg_match('/(&['.$symbolsForReference.']+)$/', $line, $matches)) return $matches[1]; |
| 1133 |
|
if (preg_match('/(\*['.$symbolsForReference.']+$)/', $line, $matches)) return $matches[1]; |
| 1134 |
|
if (preg_match ('#^\s*<<\s*:\s*(\*[^\s]+).*$#', $line, $matches)) return $matches[1]; |