Package: dh-elpa-helper
Version: 2.1.9

I believe I've found a minor bug in dh-elpa.el: the regex for
handling "git" version strings uses "[+-~]git.*$", which covers most
of ASCII for the first character.  Shouldn't that read "[-+~]git.*$"
instead, to match only "-", "+" and "~"?

I'm attaching a patch just in case this is indeed an problem.

Yours truly,

John Zaitseff

-- 
John Zaitseff   ╭───╮   Email: j.zaits...@zap.org.au
The ZAP Group   │ Z │   GnuPG: 0x0D254111C4EE569B
Australia Inc.  ╰───╯   https://www.zap.org.au/~john/
diff -ruNa dh-elpa-2.1.9.orig/dh-elpa.el dh-elpa-2.1.9/dh-elpa.el
--- dh-elpa-2.1.9.orig/dh-elpa.el	2025-03-14 17:53:25.000000000 +1100
+++ dh-elpa-2.1.9/dh-elpa.el	2025-04-29 05:57:02.416197152 +1000
@@ -157,7 +157,7 @@
 such a case."
   (when version
     (let* ((version (replace-regexp-in-string "~bpo.*$" "" version))
-           (version (replace-regexp-in-string "[+-~]git.*$" "-git" version))
+           (version (replace-regexp-in-string "[-+~]git.*$" "-git" version))
            (version (replace-regexp-in-string "~" "-" version)))
       version)))
 

Reply via email to