FuzzyMap set strictly

This commit is contained in:
2021-12-15 17:25:43 -07:00
parent b384a43742
commit 1c8864a8db

View File

@@ -61,9 +61,7 @@ abstract FuzzyMap<T>(StringMap<T>) from StringMap<T> to StringMap<T> {
}
@:arrayAccess
public inline function set(fuzzySearchKey:String, v:T):T {
var key = bestMatch(fuzzySearchKey, false);
if (key == null) key = fuzzySearchKey;
public inline function set(key:String, v:T):T {
this.set(key, v);
return v;
}