We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
\
1 parent 7b7bb6e commit 0893bbcCopy full SHA for 0893bbc
src/pyconverter/xml2py/utils/regex_pattern.py
@@ -29,7 +29,7 @@
29
GET_IMPORTS = r"(?:(?:from [a-zA-Z0-9_.]* import [a-zA-Z0-9_.]* as [a-zA-Z0-9_.]*)|(?:from [a-zA-Z0-9_.]* import [a-zA-Z0-9_.]*)|(?:import [a-zA-Z0-9_.]* as [a-zA-Z0-9_.]*)|(?:import [a-zA-Z0-9_.]*)\s)" # noqa: E501
30
GET_ITALIC_COMMANDS = r"([^\*])(\*)(\*)([A-Z]+)(\*)([^\*])" # TODO: Not supported yet
31
GET_LINES = r"^[^\.\s].+(?=\n)|(?<=\n)[^\.\s].+(?=\n)"
32
-GET_STAR_COMMANDS = r"([^\*\`])(\*)([A-Z]+)(\`|\,|\.|\s)"
+GET_STAR_COMMANDS = r"([^*`]|(?<!``))(\*)([A-Z]+)(\`|\,|\.|\s)"
33
GET_STAR_FUNCTIONS = r"([^\*\s\\\`]+)(\*)([^\*\s]+)"
34
GET_TYPENAME_1OPT = r"(?<=:)(.*)"
35
GET_TYPENAME_2OPT = r"(?<=:)(.*?)(?=[A-Z][A-Z])"
0 commit comments