fix: keep the Journal folder pattern linear on a run of separators (#514) #538

Merged
maximus merged 1 commit from issue-514-linear-folder-pattern into main 2026-11-10 01:31:04 +00:00

1 commit

Author SHA1 Message Date
le king fu
ea0cd13753 fix: keep the Journal folder pattern linear on a run of separators (#514)
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 3m35s
A folder that starts with a separator (Linux, UNC) gave a pattern that
starts with a greedy [\\/]+, so a long run of separators that does not lead
to the folder took quadratic time (15.8 s for 100 000 `/`). The pattern now
starts with (?<![\\/]): a leftmost match inside a run always starts at its
first separator, so no match is lost.

Fixes #514

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:09:51 -05:00