This commit is contained in:
2023-07-24 18:47:48 +02:00
parent a038b86147
commit edeae23bf1
2 changed files with 8 additions and 3 deletions

View File

@@ -132,8 +132,13 @@ func nameOfFunction(f any) string {
fname = split[len(split)-1]
// https://stackoverflow.com/a/32925345/1761622
if strings.HasSuffix(fname, "-fm") {
fname = fname[:len(fname)-len("-fm")]
}
if strings.HasSuffix(fname, ".func1") {
fname = fname[len(fname)-len(".func1"):]
fname = fname[:len(fname)-len(".func1")]
}
return fname