strtolower keywords

This commit is contained in:
Ibnu Maksum 2024-08-15 15:08:52 +07:00
parent 86bd2a8dd4
commit 02024fdcc7
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
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));
}
}

View file

@ -722,5 +722,6 @@
"in_here_too_": "in here too.",
"Empty_this_to_use_internal_mail___PHP": "Empty this to use internal mail() PHP",
"Mail_Reply_To": "Mail Reply To",
"Customer_will_reply_email_to_this_address__empty_if_you_want_to_use_From_Address": "Customer will reply email to this address, empty if you want to use From Address"
"Customer_will_reply_email_to_this_address__empty_if_you_want_to_use_From_Address": "Customer will reply email to this address, empty if you want to use From Address",
"You_will_get_Payment_and_Error_notification": "You will get Payment and Error notification"
}