This commit is contained in:
2023-07-26 10:44:26 +02:00
parent b5f9b6b638
commit 647ec64c3b
5 changed files with 11 additions and 11 deletions

View File

@@ -162,7 +162,7 @@ func nameOfFunction(f any) string {
fname = fname[:len(fname)-len("-fm")]
}
suffix := rext.W(regexp.MustCompile("\\.func[0-9]+$"))
suffix := rext.W(regexp.MustCompile(`\.func[0-9]+(?:\.[0-9]+)*$`))
if match, ok := suffix.MatchFirst(fname); ok {
fname = fname[:len(fname)-match.FullMatch().Length()]