Stéphane Glondu pushed to branch master at Debian OCaml Maintainers / ocaml-re
Commits:
-
ca7adb83
by Stephane Glondu at 2025-08-26T10:46:30+02:00
-
6d3e7aa3
by Stephane Glondu at 2025-08-26T10:49:38+02:00
3 changed files:
Changes:
1 | +ocaml-re (1.13.3-3) unstable; urgency=medium
|
|
2 | + |
|
3 | + * Team upload
|
|
4 | + * Fix splitting the empty string
|
|
5 | + |
|
6 | + -- Stéphane Glondu <glondu@debian.org> Tue, 26 Aug 2025 10:49:35 +0200
|
|
7 | + |
|
1 | 8 | ocaml-re (1.13.3-2) unstable; urgency=medium
|
2 | 9 | |
3 | 10 | * Team upload
|
1 | +From: Stephane Glondu <steph@glondu.net>
|
|
2 | +Date: Tue, 26 Aug 2025 10:45:52 +0200
|
|
3 | +Subject: Fix splitting the empty string
|
|
4 | + |
|
5 | +Bug: https://github.com/ocaml/ocaml-re/issues/584
|
|
6 | +---
|
|
7 | + lib/pcre.ml | 2 +-
|
|
8 | + 1 file changed, 1 insertion(+), 1 deletion(-)
|
|
9 | + |
|
10 | +diff --git a/lib/pcre.ml b/lib/pcre.ml
|
|
11 | +index 6287594..1772aca 100644
|
|
12 | +--- a/lib/pcre.ml
|
|
13 | ++++ b/lib/pcre.ml
|
|
14 | +@@ -112,7 +112,7 @@ let split ~rex str =
|
|
15 | + else loop accu fin fin true))
|
|
16 | + else finish str last accu
|
|
17 | + in
|
|
18 | +- loop [] 0 0 false
|
|
19 | ++ if str = "" then [] else loop [] 0 0 false
|
|
20 | + ;;
|
|
21 | +
|
|
22 | + (* From PCRE *) |
1 | +0001-Fix-splitting-the-empty-string.patch |