[sword-devel] [PATCH 4/7] Don’t use RE when you don’t need it.
Matěj Cepl
mcepl at cepl.eu
Sat Mar 31 11:49:01 MST 2018
---
versification/av11n.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/versification/av11n.py b/versification/av11n.py
index 54347a8..c464fd9 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -69,7 +69,7 @@ for v11n in av11ns:
while key.popError() == '\x00':
skey = key.getOSISRef()
# Assume we enter the NT when we hit Matthew
- if not inNT and re.match('^Matt', skey):
+ if not inNT and skey.startswith('Matt'):
inNT = True
if inNT:
ntkeyList.append(skey)
--
2.16.2
More information about the sword-devel
mailing list