strtolower keywords

This commit is contained in:
Ibnu Maksum
2024-08-15 15:08:52 +07:00
parent 86bd2a8dd4
commit 02024fdcc7
2 changed files with 3 additions and 2 deletions

View File

@ -325,6 +325,6 @@ class Validator
public static function containsKeyword($string, $keywords = ['mikrotik', 'hotspot', 'pppoe', 'radius', 'dummy'])
{
$regex = '/' . implode('|', $keywords) . '/i';
return preg_match($regex, $string);
return preg_match($regex, strtolower($string));
}
}