From 333afe614d78070ad89c0df2d5c423834c68ce38 Mon Sep 17 00:00:00 2001
From: Anders Blomdell <anders.blomdell@control.lth.se>
Date: Mon, 27 Nov 2023 19:06:04 +0100
Subject: [PATCH] Fix regexp error

---
 apa      | 4 ++--
 apa.spec | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/apa b/apa
index f9fcfa3..d5b3d49 100755
--- a/apa
+++ b/apa
@@ -32,10 +32,10 @@ import string
 import sys
 
 def getModuleName(s):
-    m = re.match("^(.*)/__init__\.py$", s)
+    m = re.match("^(.*)/__init__\\.py$", s)
     if m:
         return m.group(1).replace("/", ".")
-    m = re.match("^(.*)\.py$", s)
+    m = re.match("^(.*)\\.py$", s)
     if m:
         return m.group(1).replace("/", ".")
     return None
diff --git a/apa.spec b/apa.spec
index bd9706a..a04788c 100644
--- a/apa.spec
+++ b/apa.spec
@@ -1,7 +1,7 @@
 %undefine source_date_epoch_from_changelog
 
 Name:           apa
-Version:        0.4
+Version:        0.5
 Release:        1
 Summary:        Anders Python Archiver
 License:        GPLv3
-- 
GitLab