소스 검색

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):