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
Fix splitting the empty string

- - - - -
6d3e7aa3 by Stephane Glondu at 2025-08-26T10:49:38+02:00
Update changelog and prepare upload to unstable

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/0001-Fix-splitting-the-empty-string.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+ocaml-re (1.13.3-3) unstable; urgency=medium
+
+  * Team upload
+  * Fix splitting the empty string
+
+ -- Stéphane Glondu <[email protected]>  Tue, 26 Aug 2025 10:49:35 +0200
+
 ocaml-re (1.13.3-2) unstable; urgency=medium
 
   * Team upload


=====================================
debian/patches/0001-Fix-splitting-the-empty-string.patch
=====================================
@@ -0,0 +1,22 @@
+From: Stephane Glondu <[email protected]>
+Date: Tue, 26 Aug 2025 10:45:52 +0200
+Subject: Fix splitting the empty string
+
+Bug: https://github.com/ocaml/ocaml-re/issues/584
+---
+ lib/pcre.ml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/pcre.ml b/lib/pcre.ml
+index 6287594..1772aca 100644
+--- a/lib/pcre.ml
++++ b/lib/pcre.ml
+@@ -112,7 +112,7 @@ let split ~rex str =
+         else loop accu fin fin true))
+     else finish str last accu
+   in
+-  loop [] 0 0 false
++  if str = "" then [] else loop [] 0 0 false
+ ;;
+ 
+ (* From PCRE *)


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+0001-Fix-splitting-the-empty-string.patch



View it on GitLab: 
https://salsa.debian.org/ocaml-team/ocaml-re/-/compare/fa85eb9f267365abac90a7a18768a8178d079028...6d3e7aa307c9b7784769ce59d481f345e0197f4f

-- 
View it on GitLab: 
https://salsa.debian.org/ocaml-team/ocaml-re/-/compare/fa85eb9f267365abac90a7a18768a8178d079028...6d3e7aa307c9b7784769ce59d481f345e0197f4f
You're receiving this email because of your account on salsa.debian.org.


Reply via email to