File tree Expand file tree Collapse file tree
src/blenderbim/blenderbim/tool Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def load_anyifc(cls, repo):
3434 working_dir = repo .working_dir
3535 for item in os .listdir (working_dir ):
3636 path = os .path .join (working_dir , item )
37- if os .path .isfile (path ) and re .match (".*\.ifc$" , path , re .IGNORECASE ):
37+ if os .path .isfile (path ) and re .match (".*\\ .ifc$" , path , re .IGNORECASE ):
3838 cls .load_project (path )
3939 return True
4040 return False
@@ -202,7 +202,7 @@ def is_valid_ref_format(cls, string):
202202 """Check a bare branch or tag name is valid"""
203203
204204 return re .match (
205- "^(?!\.| |-|/)((?!\.\ .)(?!.*/\.)(/\*|/\*/)*(?!@\{)[^\~\:\ ^\\ \ \ ?*\[])+(?<!\.|/)(?<!\.lock)$" ,
205+ "^(?!\\ .| |-|/)((?!\\ . \\ .)(?!.*/\\ .)(/\\ *|/\\ */)*(?!@\\ {)[^\\ ~ \\ : \\ ^\\ \\ \\ ?*\\ [])+(?<!\\ .|/)(?<!\ \ .lock)$" ,
206206 string ,
207207 )
208208
You can’t perform that action at this time.
0 commit comments