Closed matentzn closed 3 years ago
@balhoff I think the solution here is to change S+ to w+ in the following:
w+ is any non-word character ([a-zA-Z_0-9])
I am thinking that this would work only if the token (%s) is separated from any following text by a non-word character (eg, %s123borne would cause an error & %s-borne would not).
Is this reasonable?
@jdr0887 I like this idea. One problem is we don't have any constraints on the syntax of variable names. Perhaps we could include a restriction to regex word characters in the spec. Currently there's nothing stopping someone using a hyphen in their variable name. @matentzn @dosumis what do you think? Can we add to the spec that variable names must include only the characters [a-zA-Z_0-9]
(letters, digits, underscore)?
100% reasonable! that exact regex is fine! @dosumis needs to add it to the validator script though.
Thanks, I'll go ahead and accept Jason's PR then.
Fixed by #286.
Failing pattern:
https://github.com/monarch-initiative/mondo/blob/master/src/patterns/dosdp-patterns/vectorBorneDisease.yaml
@balhoff and I believe it could be the dash in the definition:
Error: