Commit adc65af
committed
Use the preg_match_all return to detect failures
Even if we cannot match anything we would have had an array containing an empty array. That array indicates that nothing was matched.
We should now fail when:
- preg_match_all fails
- preg_match_all returns it found 0 matches
- the redundant case (as safeguard) when the array has 0 matches
(cherry picked from commit 274d36a)1 parent 1ba02e7 commit adc65af
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
1036 | | - | |
| 1035 | + | |
| 1036 | + | |
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
| |||
0 commit comments