ThresholdRange: use substr() instead of strpos() where more performant
refs #8194
This commit is contained in:
parent
ddde4b447c
commit
746eb07862
|
@ -41,7 +41,7 @@ class ThresholdRange
|
||||||
$range = new static();
|
$range = new static();
|
||||||
|
|
||||||
$rawRange = ltrim($rawRange);
|
$rawRange = ltrim($rawRange);
|
||||||
if (strpos($rawRange, '@') === 0) {
|
if (substr($rawRange, 0, 1) === '@') {
|
||||||
$range->setInverted(true);
|
$range->setInverted(true);
|
||||||
$rawRange = substr($rawRange, 1);
|
$rawRange = substr($rawRange, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue