Explorar o código

Allow model_list on names ending with a /

Yentl Van Tendeloo %!s(int64=7) %!d(string=hai) anos
pai
achega
0f72853ea3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      bootstrap/core_algorithm.alc

+ 3 - 0
bootstrap/core_algorithm.alc

@@ -273,6 +273,9 @@ String function get_entry_id(name : String):
 	if (name == ""):
 		return caches["root"]!
 
+	if (string_get(name, string_len(name) - 1) == "/"):
+		name = string_substr(name, 0, string_len(name) - 1)
+
 	if (dict_in(caches["models"], name)):
 		if (dict_in(core, caches["models"])):
 			if (full_name(caches["models"][name]) == name):