Commit 274d36a
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 matches1 parent 11d2169 commit 274d36a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
1026 | | - | |
1027 | | - | |
| 1026 | + | |
| 1027 | + | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | 1030 | | |
| |||
0 commit comments