mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-13 01:25:45 +00:00
bugfix: All previous entity files are removed when file is updated
This commit is contained in:
@@ -27,3 +27,11 @@ func ReplaceEntityVars(prefix string, source string) string {
|
||||
|
||||
return source
|
||||
}
|
||||
|
||||
func RemoveKeysThatStartWith(search string) {
|
||||
for k, _ := range Contents {
|
||||
if strings.HasPrefix(k, search) {
|
||||
delete(Contents, k)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user