feat: disregard digits in heuristic bone mapper (#393)

Closes: #387
This commit is contained in:
bd_ 2023-08-13 21:36:50 +09:00 committed by GitHub
parent 06a473eaec
commit c48ef9be0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,6 +231,7 @@ namespace nadena.dev.modular_avatar.core.editor
.Replace("_", "") .Replace("_", "")
.Replace(".", "") .Replace(".", "")
.Replace(" ", ""); .Replace(" ", "");
name = Regex.Replace(name, "[0-9]", "");
return PAT_END_NUMBER.Replace(name, ""); return PAT_END_NUMBER.Replace(name, "");
} }