From 5f2d6b601d76b2db5e84b378a64d2a3cc36d9ba3 Mon Sep 17 00:00:00 2001
From: Anders Blomdell <anders.blomdell@control.lth.se>
Date: Wed, 31 Jan 2024 11:49:22 +0100
Subject: [PATCH] Fix bad escape in regexp
---
apa.spec | 2 +-
apa2 | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/apa.spec b/apa.spec
index a04788c..1d470c9 100644
--- a/apa.spec
+++ b/apa.spec
@@ -2,7 +2,7 @@
Name: apa
Version: 0.5
-Release: 1
+Release: 2
Summary: Anders Python Archiver
License: GPLv3
Source0: https://gitlab.control.lth.se/anders_blomdell/apa/-/raw/master/apa
diff --git a/apa2 b/apa2
index 7894515..7871938 100755
--- a/apa2
+++ b/apa2
@@ -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
--
GitLab