Eric Traut
367c675602
Fix thread search snippets for whitespace-containing queries ( #60846 )
...
## Why
Normalizing whitespace before matching prevents thread search from producing snippets for queries containing repeated spaces, newlines, or tabs.
## What changed
Match against the original conversation text and select the surrounding excerpt before normalizing whitespace for display.
## Testing
Extend `thread_search_matches_json_escaped_content` to cover repeated spaces, newlines, and tabs alongside quotes and backslashes, and assert that the returned snippet has normalized whitespace.
GitOrigin-RevId: fffdcc8d246e7603a52c32bb5239b9873f8179fc
2026-11-11 19:17:43 +00:00
..
2026-11-10 03:01:14 +00:00
2026-11-10 16:31:52 +00:00
2026-10-22 11:51:23 +00:00
2026-11-06 22:27:47 +00:00
2026-10-26 20:54:35 +00:00
2026-10-27 17:04:16 +00:00
2026-11-06 22:27:47 +00:00
2026-11-03 02:26:29 +00:00
2026-10-19 21:43:19 +00:00
2026-11-05 22:03:29 +00:00
2026-11-05 22:03:29 +00:00
2026-11-10 11:17:06 +00:00
2026-10-29 11:23:51 +00:00
2026-11-06 01:10:49 +00:00
2026-11-02 18:42:19 +00:00
2026-10-26 18:13:00 +00:00
2026-10-29 22:36:06 +00:00
2026-10-21 19:06:57 +00:00
2026-10-26 18:13:00 +00:00
2026-11-06 22:27:47 +00:00
2026-11-11 05:38:52 +00:00
2026-11-05 04:25:19 +00:00
2026-11-11 05:38:52 +00:00
2026-10-17 23:34:04 +00:00
2026-11-11 05:38:52 +00:00
2026-11-03 23:49:01 +00:00
2026-11-11 05:38:52 +00:00
2026-10-26 18:13:00 +00:00
2026-11-11 06:41:15 +00:00
2026-10-19 22:55:42 +00:00
2026-11-07 02:28:22 +00:00
2026-10-29 11:23:51 +00:00
2026-11-11 07:39:04 +00:00
2026-11-10 11:17:06 +00:00
2026-10-26 18:13:00 +00:00
2026-10-23 12:23:10 +00:00
2026-10-28 20:21:30 +00:00
2026-10-20 17:01:52 +00:00
2026-11-10 01:28:45 +00:00
2026-11-02 18:42:19 +00:00
2026-11-07 02:09:31 +00:00
2026-10-27 11:05:48 +00:00
2026-10-23 18:48:10 +00:00
2026-10-23 18:48:10 +00:00
2026-10-29 16:30:06 +00:00
2026-10-23 18:48:10 +00:00
2026-11-05 11:41:09 +00:00
2026-10-23 18:39:28 +00:00
2026-10-29 18:09:55 +00:00
2026-11-03 06:24:24 +00:00
2026-10-29 11:23:51 +00:00
2026-11-10 05:20:44 +00:00
2026-10-29 03:47:52 +00:00
2026-11-04 22:55:22 +00:00
2026-11-04 22:55:22 +00:00
2026-10-29 11:23:51 +00:00
2026-10-28 23:21:04 +00:00
2026-10-29 11:23:51 +00:00
2026-10-23 12:35:58 +00:00
2026-11-10 04:56:49 +00:00
2026-11-02 12:22:22 +00:00
2026-11-06 12:04:44 +00:00
2026-11-06 01:10:49 +00:00
2026-11-10 05:08:19 +00:00
2026-11-07 23:51:58 +00:00
2026-11-06 05:10:44 +00:00
2026-11-02 08:31:14 +00:00
2026-10-20 11:56:17 +00:00
2026-10-28 06:22:58 +00:00
2026-10-26 18:13:00 +00:00
2026-11-05 03:49:13 +00:00
2026-11-06 00:23:38 +00:00
2026-11-05 03:49:13 +00:00
2026-10-27 21:51:50 +00:00
2026-11-10 11:17:06 +00:00
2026-11-07 08:11:37 +00:00
2026-11-07 08:11:37 +00:00
2026-11-07 00:18:36 +00:00
2026-10-30 02:43:02 +00:00
2026-11-11 05:38:52 +00:00
2026-11-07 06:32:12 +00:00
2026-11-11 08:16:52 +00:00
2026-10-28 07:12:32 +00:00
2026-10-26 18:13:00 +00:00
2026-10-26 18:13:00 +00:00
2026-11-10 11:17:06 +00:00
2026-10-28 04:05:31 +00:00
2026-11-02 19:26:15 +00:00
2026-11-10 11:17:06 +00:00
2026-10-23 18:39:28 +00:00
2026-11-10 01:30:08 +00:00
2026-11-11 19:17:43 +00:00
2026-11-10 11:17:06 +00:00
2026-11-06 05:10:44 +00:00
2026-11-11 08:28:25 +00:00
2026-11-02 13:51:49 +00:00
2026-10-30 14:40:32 +00:00
2026-11-09 03:58:05 +00:00
2026-11-05 08:10:44 +00:00
2026-11-10 16:31:52 +00:00
2026-10-30 16:09:46 +00:00
2026-11-10 20:35:28 +00:00
2026-10-26 18:13:00 +00:00
2026-10-26 22:13:14 +00:00
2026-10-29 11:23:51 +00:00
2026-11-11 08:16:52 +00:00
2026-11-11 08:16:52 +00:00
2026-10-27 04:52:09 +00:00
2026-10-28 01:29:34 +00:00
2026-11-11 02:13:43 +00:00
2026-11-10 20:35:28 +00:00
2026-11-10 11:17:06 +00:00
2026-11-10 01:30:08 +00:00
2026-10-26 18:13:00 +00:00
2026-10-29 18:41:17 +00:00
2026-11-03 02:08:56 +00:00
2026-11-06 22:27:47 +00:00