mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Make sniffing of BCSL model more strict
This commit is contained in:
@@ -1103,8 +1103,8 @@ class BCSLmodel(Text):
|
||||
"""
|
||||
Determines whether the file is in .bcsl.model format
|
||||
"""
|
||||
keywords = ["#! rules", "#! inits", "#! definitions"]
|
||||
return any(keyword in file_prefix.contents_header for keyword in keywords)
|
||||
reg = r"^#! rules|^#! inits|^#! definitions"
|
||||
return re.search(reg, file_prefix.contents_header, re.MULTILINE) is not None
|
||||
|
||||
|
||||
@build_sniff_from_prefix
|
||||
|
||||
Reference in New Issue
Block a user