Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regex/literal: fix bug in Boyer-Moore
This patch fixes an issue where skip resolution would go strait to the default value (the md2_shift) on a match failure after the shift_loop. Now we do the right thing, and first check in the skip table. The problem with going strait to the md2_shift is that you can accidentally shift to far when `window_end` actually is in the pattern (as is the case for the failing match).
- Loading branch information