Update StringUtils::isValidRegex() call to isValidPCRERegex()

This follows-up 8587576655 (AF) and efbfa0a727 (core). The
method was recently introduced within the 1.34 cycle but
renamed following late CR feedback.

Change-Id: I9986deb080791c6266c6c60cc91022266ad9b5e5
This commit is contained in:
Krinkle 2019-09-28 19:11:32 +00:00
parent 952dfa0bb4
commit a532874ee2

View file

@ -88,7 +88,7 @@ class AbuseFilterViewList extends AbuseFilterView {
if ( $querypattern !== '' ) {
if ( $searchmode !== 'LIKE' ) {
if ( !StringUtils::isValidRegex( "/$querypattern/" ) ) {
if ( !StringUtils::isValidPCRERegex( "/$querypattern/" ) ) {
$out->addHTML(
Xml::tags(
'p',