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 d2deb96 commit 33b010bCopy full SHA for 33b010b
1 file changed
src/xulbux/regex.py
@@ -104,7 +104,10 @@ def func_call(func_name: Optional[str] = None) -> str:
104
If no `func_name` is given, it will match any function call.\n
105
---------------------------------------------------------------------------------
106
Attention: Requires non-standard library `regex`, not standard library `re`!"""
107
- return rf"""(?<=\b)({func_name or r"[\w_]+"})\s*{Regex.brackets("(", ")", is_group=True)}"""
+ if func_name in {"", None}:
108
+ func_name = r"[\w_]+"
109
+
110
+ return rf"""(?<=\b)({func_name})\s*{Regex.brackets("(", ")", is_group=True)}"""
111
112
@staticmethod
113
def rgba_str(fix_sep: Optional[str] = ",", allow_alpha: bool = True) -> str:
0 commit comments