Skip to content

Commit 9ef9831

Browse files
committed
fix: accept *DIM, and *DIM. for adding \
1 parent a562d16 commit 9ef9831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyconverter/xml2py/ast_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def replace_asterisks(initial_text):
390390

391391
# Replace all * with \*
392392
text = re.sub(
393-
r"([^\*])(\*)([A-Z]+)(\`|\s)", r"\1" + r"\*" + r"\3\4", initial_text
393+
r"([^\*])(\*)([A-Z]+)(\`|\,|\.|\s)", r"\1" + r"\*" + r"\3\4", initial_text
394394
) # Replace ``*DIM`` configurations into ``\*DIM``
395395
text = re.sub(
396396
r"([^\*\s\\]+)(\*)([^\*\s]+)", r"\1\\2\3", text

0 commit comments

Comments
 (0)