Package: devscripts
Version: 2.25.19
Severity: minor

Dear maintainer,

This watch file does not work:

  Version: 5
  Template: Github
  Owner: micropython
  Project: micropython
  Matching-Pattern:
https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/v?(\d[\d.]*)(?=")

Output:
  uscan info: Found the following matching files on the web page (newest first):
   https://api.github.com/repos/micropython/micropython/git/refs/tags/v1.0
() index=-0
   https://api.github.com/repos/micropython/micropython/git/refs/tags/v1.0.1
() index=-0
   ...

However, look ahead negative does work:
  Matching-Pattern:
https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/v?(\d[\d.]*)(?!")

Output:
  uscan info: Found the following matching files on the web page (newest first):
   https://api.github.com/repos/micropython/micropython/git/refs/tags/v1.27.0
(1.27.0) index=1.27.0-0
   https://api.github.com/repos/micropython/micropython/git/refs/tags/v1.26.0
(1.26.0) index=1.26.0-0
   ...

Reply via email to