mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
move the negation outside of the regular expression for more accurate results
This commit is contained in:
@@ -67,7 +67,7 @@ function process_syslog($entry, $update) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// if this looks like a program (no groups of 2 or more lowercase letters), move it to program
|
// if this looks like a program (no groups of 2 or more lowercase letters), move it to program
|
||||||
if (preg_match('/[^(a-z)]{2,}/', $entry['msg'])) {
|
if (!preg_match('/[(a-z)]{2,}/', $entry['msg'])) {
|
||||||
$entry['program'] = $entry['msg'];
|
$entry['program'] = $entry['msg'];
|
||||||
unset($entry['msg']);
|
unset($entry['msg']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user