Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Support new CWS URL #135

Merged
merged 2 commits into from
Nov 6, 2023
Merged

fix: Support new CWS URL #135

merged 2 commits into from
Nov 6, 2023

Conversation

xnumad
Copy link
Contributor

@xnumad xnumad commented Oct 14, 2023

Fixes #134
Tested all changes in browser and web demo.

--

return 'https://chrome.google.com/webstore/detail/' + cws[1];

No change needed here. CWS automatically redirects you to new CWS, only if you actually enabled the new CWS. So the current link is more of a permalink and will probably not be deprecated soon.

Made new capture group non-capturing (i.e. `(?:)`) because it would otherwise be the first capture group, but other parts of the code rely on hard coded capture group numbers (namely `[1]`)
Copy link

@fregante fregante left a comment

Choose a reason for hiding this comment

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

💜

I almost sent an identical PR

@Rob--W
Copy link
Owner

Rob--W commented Nov 6, 2023

Thanks for the PR, I'll merge it and add a small follow-up.

@Rob--W Rob--W merged commit 5f551db into Rob--W:master Nov 6, 2023
Rob--W added a commit that referenced this pull request Nov 6, 2023
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.

Support for new chrome webstore
3 participants