Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛 match any character between func name and
(
(#495)
* fix: 🐛 match any character between func name and `(` * refactor: ♻️ use non-capturing group * fix: 🐛 match white space before `(` * fix: Ignore comments * refactor: 🔥 removed redundant whitespace token moved the regex string to the top and added a description * fix: 🐛 match space before `(` and word boundary for the method name * refactor: ♻️ removed `(?<!#)` It only handled one specific case, `#func`. Something like `# ` was still matched. To avoid giving a false impression, I removed it, and this case is now also handled by `is_top_level_func()`. * fix: 🐛 more word boundaries
- Loading branch information