fontoxpath icon indicating copy to clipboard operation
fontoxpath copied to clipboard

`matches` function doesn't work with flags argument

Open DetachHead opened this issue 1 year ago • 2 comments
trafficstars

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

DetachHead avatar Oct 30 '24 06:10 DetachHead