Closed jdelStrother closed 1 year ago
Thanks - would you be willing to put together a PR for the \\d
regressions specifically?
I'm in the middle of refactoring this user-agents
list at the moment (for use in op3.dev), that changes quite a few of a quirks in this current form (including the unnecessary \/
, removing lookaheads, duplicates), but it's probably a few days out from being ready to use.
Thanks! You may be interested in the new version of this repo, which does not have these issues (I double checked each one in your PR), and include autotesting against found examples to prevent regressions like this.
Heya - as of https://github.com/opawg/user-agents/commit/03595565ade2639ff8ba6b60c9281c2dfdffc396, it seems like we lost most/all of the use of
\d+
to represent a numberAs an example, before that commit, one of the Apple Podcasts' useragent matchers was
the same matcher is now:
eg
"^Podcasts\/.*d$"
only matches user agents ending with a "d", not a numeric.I'd also suggest the
\/
in there is a bit weird - it's harmless, but in JSON"/"
and"\/"
are equivalent, AFAIK.