-
Notifications
You must be signed in to change notification settings - Fork 44
Commit 0e5dae7
fix: 🐛 match any character between func name and
* 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( (#495)1 parent 64bcd83 commit 0e5dae7
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
338 | 343 | | |
339 | 344 | | |
340 | 345 | | |
341 | - | ||
346 | + | ||
342 | 347 | | |
343 | 348 | | |
344 | 349 | | |
| |||
0 commit comments