فهرست منبع

Allow model_list on names ending with a /

Yentl Van Tendeloo 7 سال پیش
والد
کامیت
0f72853ea3
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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):