mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Improve test data capture multi-line data matching (#8023)
This commit is contained in:
@@ -241,7 +241,7 @@ class ModuleTestHelper
|
||||
continue;
|
||||
}
|
||||
|
||||
if (str_contains($line, ' =')) {
|
||||
if (preg_match('/^\.[.\d]+ =/', $line)) {
|
||||
list($oid, $raw_data) = explode(' =', $line, 2);
|
||||
$oid = ltrim($oid, '.');
|
||||
$raw_data = trim($raw_data);
|
||||
|
Reference in New Issue
Block a user