Files
ladybird/AK
Sam Atkins 7e98c8eaf6 AK+Tests: Fix StringUtils::contains() being confused by repeating text
Previously, case-insensitively searching the haystack "Go Go Back" for
the needle "Go Back" would return false:

1. Match the first three characters. "Go ".
2. Notice that 'G' and 'B' don't match.
3. Skip ahead 3 characters, plus 1 for the outer for-loop.
4. Now, the haystack is effectively "o Back", so the match fails.

Reducing the skip by 1 fixes this issue. I'm not 100% convinced this
fixes all cases, but I haven't been able to find any cases where it
doesn't work now. :^)
2022-03-18 23:51:56 +00:00
..
2022-02-26 16:01:26 +01:00
2022-02-23 00:42:49 +00:00
2021-10-06 23:52:40 +01:00
2021-07-14 11:26:34 +04:30
2022-02-23 00:42:49 +00:00
2022-01-16 11:18:04 +01:00
2021-10-06 23:52:40 +01:00
2022-03-08 23:05:44 +01:00
2021-11-22 09:03:47 +01:00
2021-11-22 09:03:47 +01:00
2021-06-24 09:27:13 +02:00
2021-05-14 22:24:02 +02:00
2021-08-07 15:21:58 +02:00
2021-07-22 23:33:21 +02:00
2021-12-12 11:10:34 -08:00
2022-01-29 17:41:06 +02:00
2022-02-28 20:09:37 +01:00
2022-02-28 20:09:37 +01:00
2021-04-29 22:23:52 +02:00