🐛 Fix plugin event identifier generation
plugin_Example_event was wrongly turned into PLUGIN__EXAMPLE_EVENT. Fixed regex to solve this. Closes #4417
This commit is contained in:
1 parent
f215523f43
commit
3cce49fe79
2 files changed
+23
-1
No files matched your search
@@ -139,7 +139,7 @@ class Events:
|
||||
return name, event
|
||||
|
||||
# based on https://stackoverflow.com/a/1176023
|
||||
_first_cap_re = re.compile("(.)([A-Z][a-z]+)")
|
||||
_first_cap_re = re.compile("([^_])([A-Z][a-z]+)")
|
||||
_all_cap_re = re.compile("([a-z0-9])([A-Z])")
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user