Skip to content

Commit 999ab03

Browse files
committed
Update fancy-regex
Fancy regex has a max backtracking limit which defaults to 1,000,000 backtracks. This avoids spinning the CPU forever in the case that a match is taking a long time (though does mean that some matches may be missed). Unfortunately the verison we depended on causes an infinite loop when the backtracking limit is hit (fancy-regex/fancy-regex#137), so we got the worse of both worlds: matches were missed *and* we spun the CPU forever. Updating fixes this. Excitingly, in the future, regex may gain support for lookarounds (rust-lang/regex#1315), which will make fancy-regex much less load bearing. Closes #43821
1 parent f90d9d2 commit 999ab03

File tree

2 files changed

+43
-51
lines changed

2 files changed

+43
-51
lines changed

Cargo.lock

Lines changed: 40 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ ec4rs = "1.1"
505505
emojis = "0.6.1"
506506
env_logger = "0.11"
507507
exec = "0.3.1"
508-
fancy-regex = "0.14.0"
508+
fancy-regex = "0.16.0"
509509
fork = "0.4.0"
510510
futures = "0.3"
511511
futures-batch = "0.6.1"
@@ -531,7 +531,7 @@ indoc = "2"
531531
inventory = "0.3.19"
532532
itertools = "0.14.0"
533533
json_dotpath = "1.1"
534-
jsonschema = "0.30.0"
534+
jsonschema = "0.37.0"
535535
jsonwebtoken = "9.3"
536536
jupyter-protocol = "0.10.0"
537537
jupyter-websocket-client = "0.15.0"
@@ -658,7 +658,7 @@ sysinfo = "0.37.0"
658658
take-until = "0.2.0"
659659
tempfile = "3.20.0"
660660
thiserror = "2.0.12"
661-
tiktoken-rs = { git = "https://github.com/zed-industries/tiktoken-rs", rev = "7249f999c5fdf9bf3cc5c288c964454e4dac0c00" }
661+
tiktoken-rs = { git = "https://github.com/zed-industries/tiktoken-rs", rev = "2570c4387a8505fb8f1d3f3557454b474f1e8271" }
662662
time = { version = "0.3", features = [
663663
"macros",
664664
"parsing",

0 commit comments

Comments
 (0)