Skip to content

Make id matching strict #11

@qpanda

Description

@qpanda

The grammar allows id values matching pattern ['a'..='z'|'A'..='Z']+ ['a'..='z'|'A'..='Z'|'0'..='9'|'+'|'-'|'.'|':'|'_']* but the Id type defined in parser.rs doesn't enforce that tokens match this pattern and incorrectly turns all tokens into Ids.
Maybe it is possible to fix this by implementing the FromStr for Id. If that's not possible then the validation would need to be added to the FromWord trait implementation for Id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions