Skip to content

matches function doesn't work with flags argument #662

Description

@DetachHead

according to the xpath 3.0 spec, the matches function can take a third argument for regex flags.

however this doesn't seem to work in fontoxpath:

1: //tip[matches(., "^You", "m")]
         ^^^^^^^^^^^^^^^^^^^^^^^

Error: XPST0017: Function Q{http://www.w3.org/2005/xpath-functions}matches with arity of 3 not registered. Did you mean "Q{http://www.w3.org/2005/xpath-functions}matches (xs:string?, xs:string)"?
  at <functionCallExpr>:1:7 - 1:30
  at <pathExpr>:1:1 - 1:31

playground

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions