Skip to content

Conversation

fhuonder
Copy link
Contributor

@fhuonder fhuonder commented Aug 2, 2023

Description

Changes the regex that matches the URL for the version.json path generation.
The previous regex did not correctly recognize non-word characters in URLs and created a wrong version.json path.

Related Issues

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I titled the PR using Conventional Commits.
  • I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
  • All existing and new tests are passing.
  • The analyzer (flutter analyze) does not report any problems on my PR.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@fhuonder fhuonder changed the title WIP: fix wrong cachebuster appendix on version.json fix: create proper version.json url for all types of paths Aug 2, 2023
@fhuonder fhuonder force-pushed the wrong-versionjson-path branch from 1678c3f to 2a83e24 Compare August 2, 2023 07:07
@fhuonder fhuonder changed the title fix: create proper version.json url for all types of paths fix: proper version.json url for files with special characters Aug 2, 2023
@fhuonder fhuonder force-pushed the wrong-versionjson-path branch from 2a83e24 to 7d6a844 Compare August 2, 2023 07:10
@fhuonder fhuonder changed the title fix: proper version.json url for files with special characters fix(package_info_plus): proper version.json url for files with special characters Aug 2, 2023
@fhuonder fhuonder marked this pull request as ready for review August 2, 2023 07:33
@vbuberen vbuberen added package_info_plus stuff related to package_info_plus web labels Aug 2, 2023
Copy link
Collaborator

@vbuberen vbuberen left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for adding tests as well. This fix will be released today.

@vbuberen vbuberen merged commit 235ee39 into fluttercommunity:main Aug 2, 2023
@fhuonder fhuonder deleted the wrong-versionjson-path branch August 2, 2023 09:43
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package_info_plus stuff related to package_info_plus web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Wrong version.json path when path contains non-word characters
2 participants