← All changes
|
includes/contact-segmentation/operators/ends-with.php
+2
-0
1.7.2
→
2.7.0
View file →
| @@ -60,8 +60,10 @@ | ||
| 60 | 60 | * @param mixed $value mixed The value of current value. |
| 61 | 61 | * @param mixed $condition_value The value of condition input. |
| 62 | 62 | */ |
| 63 | 63 | public function is_valid( $value, $condition_value ) { |
| 64 | + $value = strtolower( $value ); | |
| 65 | + $condition_value = strtolower( $condition_value ); | |
| 64 | 66 | if ( str_ends_with( $value, $condition_value ) ) { |
| 65 | 67 | return true; |
| 66 | 68 | } |
| 67 | 69 | |