From 31aebca3301b72ab443e52a175fd908b129fa5a8 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 5 Apr 2018 02:29:27 +0000 Subject: Don’t use RE when you don’t need it. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@521 07627401-56e2-0310-80f4-f8cd0041bdcd --- 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) -- cgit