summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2025-05-13 13:38:14 +0100
committerDaniil Baturin <daniil@baturin.org>2025-05-13 13:38:14 +0100
commit75a8e1a6fe4daff0c5a17d6fd24743adc84e6adc (patch)
tree64ee4f4707f08eb1424634dc13202d2bbd663f1e
parent4f8cd87849ae16f5efb127b63767176a243bcd8d (diff)
downloadvyconf-T7450-use-pcre2.tar.gz
vyconf-T7450-use-pcre2.zip
deps: T7450: Use PCRE2 instead of the original, oudated PCRET7450-use-pcre2
-rw-r--r--src/commit.ml4
-rw-r--r--vyconf.opam2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/commit.ml b/src/commit.ml
index 19c9844..0d675d8 100644
--- a/src/commit.ml
+++ b/src/commit.ml
@@ -85,12 +85,12 @@ end
module CS = Set.Make(CI)
let owner_args_from_data p o =
- let oa = Pcre.split o in
+ let oa = Pcre2.split o in
let owner = FilePath.basename (List.nth oa 0) in
if List.length oa < 2 then owner, None
else
let var = List.nth oa 1 in
- let res = Pcre.extract_all ~pat:"\\.\\./" var in
+ let res = Pcre2.extract_all ~pat:"\\.\\./" var in
let var_pos = Array.length res in
let arg_value = Vyos1x.Util.get_last_n p var_pos
in owner, arg_value
diff --git a/vyconf.opam b/vyconf.opam
index 2ae8127..1c338d3 100644
--- a/vyconf.opam
+++ b/vyconf.opam
@@ -28,6 +28,6 @@ depends: [
"xml-light" {build}
"toml" {build}
"sha" {build}
- "pcre" {build}
+ "pcre2" {build}
"toml" {build}
]