mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-13 12:13:42 +01:00
chore(deps): bump fancy-regex from 0.17.0 to 0.19.2 (#773)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gregory Schier <gschier1990@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
4 files changed
+16
-5
No files matched your search
Generated
+13
-2
@@ -2373,6 +2373,17 @@ dependencies = [
|
||||
"regex-syntax 0.8.11",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fancy-regex"
|
||||
version = "0.19.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d301f5bf187b3c295fce6468d3875037a0bccc5f6b151c63cac2f85babf21912"
|
||||
dependencies = [
|
||||
"bit-set",
|
||||
"regex-automata",
|
||||
"regex-syntax 0.8.11",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fancy_constructor"
|
||||
version = "2.1.1"
|
||||
@@ -6169,7 +6180,7 @@ checksum = "a6e38320d5a8e386647f622067588bdb338c9e6e43eb32cf6f8991dd0e8f0046"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"concurrent_lru",
|
||||
"fancy-regex",
|
||||
"fancy-regex 0.17.0",
|
||||
"flate2",
|
||||
"nodejs-built-in-modules",
|
||||
"pathdiff",
|
||||
@@ -11525,7 +11536,7 @@ dependencies = [
|
||||
name = "yaak-filter"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"fancy-regex",
|
||||
"fancy-regex 0.19.2",
|
||||
"indexmap 2.14.2",
|
||||
"serde_json",
|
||||
"sxd-document",
|
||||
|
||||
@@ -5,7 +5,7 @@ edition = "2024"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
fancy-regex = "0.17"
|
||||
fancy-regex = "0.19"
|
||||
indexmap = "2"
|
||||
sxd-document = "0.3.2"
|
||||
sxd-xpath = "0.4.2"
|
||||
|
||||
@@ -46,7 +46,7 @@ fn regex(pattern: &str) -> Regex {
|
||||
fn replace(
|
||||
re: &Regex,
|
||||
text: &str,
|
||||
rep: impl FnMut(&Captures<'_>) -> String,
|
||||
rep: impl FnMut(&Captures<'_, str>) -> String,
|
||||
) -> Result<String, String> {
|
||||
re.try_replacen(text, 0, rep)
|
||||
.map(|s| s.into_owned())
|
||||
|
||||
@@ -158,7 +158,7 @@ impl JsRegex {
|
||||
}
|
||||
}
|
||||
|
||||
fn capture_values<'a>(captures: &Captures<'_>, from: usize) -> Vec<JsValue<'a>> {
|
||||
fn capture_values<'a>(captures: &Captures<'_, str>, from: usize) -> Vec<JsValue<'a>> {
|
||||
(from..captures.len())
|
||||
.map(|i| captures.get(i).map_or(JsValue::Undefined, |m| JsValue::string(m.as_str())))
|
||||
.collect()
|
||||
|
||||
Reference in new issue
Block a user