Skip to content

Commit 5366e49

Browse files
committed
0.3.1 Update
escape string in crackfortran, preventing crashes
1 parent e45f538 commit 5366e49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = 'sphinxfortran_ng'
3-
version = '0.3.0'
3+
version = '0.3.1'
44
authors = [{name = "Lorenzo Crippa", email="[email protected]"}]
55
description = "An improved version of the sphinx-fortran python module"
66
readme = "README.md"

src/sphinxfortran_ng/crackfortran_for_sphinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ def analyzevars(block):
26372637
try:
26382638
dep_matches[n]
26392639
except KeyError:
2640-
dep_matches[n] = re.compile(r'.*\b%s\b' % (v), re.I).match
2640+
dep_matches[n] = re.compile(r'.*\b%s\b' % re.escape(v), re.I).match
26412641
for n in svars:
26422642
if n[0] in list(attrrules.keys()):
26432643
vars[n] = setattrspec(vars[n], attrrules[n[0]])

0 commit comments

Comments
 (0)