Skip to content

web scraper#83

Merged
mxcl merged 1 commit intomainfrom
web-scraper
Apr 16, 2023
Merged

web scraper#83
mxcl merged 1 commit intomainfrom
web-scraper

Conversation

@jhheider
Copy link
Contributor

not sure about the DX here. ca-certs looks like this:

versions:
  url: "https://curl.se/docs/caextract.html"
  match: /cacert-2\d+-\d+-\d+.pem/
  strip:
    - /cacert-/
    - /\.pem/

@jhheider jhheider requested a review from mxcl April 15, 2023 02:08
@jhheider jhheider linked an issue Apr 15, 2023 that may be closed by this pull request
@mxcl
Copy link
Contributor

mxcl commented Apr 16, 2023

DX is idiomatic and good IMO

throw new Error()
})(match[0])

// We'll handle dates > calver automatically. For now.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly a nice feature for tags too…?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think allowing semver.parse to try the same string with .replaceAll("-", ".") in tolerant mode will probably fix more problems than it causes. Some repos have tags like project_3_1_22.

@mxcl mxcl merged commit 25c44fb into main Apr 16, 2023
@mxcl mxcl deleted the web-scraper branch April 16, 2023 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

usePantry().getVersions() should support more providers

2 participants