forgejo/tests
Wayne Starr 49a4464160
Allow for resolution of NPM registry paths that match upstream (#21568)
This PR fixes issue #21567 allowing for package tarball URLs to match
the upstream registry (and GitLab/JFrog Artifactory URLs). It uses a
regex to parse the filename (which contains the NPM version) and does a
fuzzy search to pull it out. The regex was built/expanded from
http://json.schemastore.org/package,
https://github.com/Masterminds/semver, and
https://docs.npmjs.com/cli/v6/using-npm/semver and is testable here:
https://regex101.com/r/OydBJq/5

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-10-24 21:50:22 +08:00
..
e2e Better repo API unit checks (#21130) 2022-09-28 00:23:58 +02:00
gitea-repositories-meta Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
integration Allow for resolution of NPM registry paths that match upstream (#21568) 2022-10-24 21:50:22 +08:00
mssql.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
mysql.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
mysql8.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
pgsql.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
sqlite.ini.tmpl Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
test_utils.go Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
testlogger.go Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00