1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Origin: commit: 44211bea960cedf928e69cd48a52719463cd8999
From: Max <aragon999@users.noreply.github.com>
Date: Wed, 27 Nov 2024 13:17:50 +0100
Subject: fix: Invalid escape sequence in regex string (#75)
Bug: https://github.com/simoncozens/babelfont/pull/75
---
diff --git a/src/babelfont/convertors/fontlab/vfb.py b/src/babelfont/convertors/fontlab/vfb.py
index 75bfbf4..52ad622 100644
--- a/src/babelfont/convertors/fontlab/vfb.py
+++ b/src/babelfont/convertors/fontlab/vfb.py
@@ -97,7 +97,7 @@ def _load(self):
if data is None:
continue
- if name in ignore or re.match("^\d+$", name):
+ if name in ignore or re.match(r"^\d+$", name):
continue
if name in store_in_scratch:
scratch[name].append(data)
|