dominique-mueller/web-extension-github-travis-status

PR review request in url breaks the extension

Closed this issue · 3 comments

If a link to a PR review request is included in the url, the extension does not load. For example Polymer/tools#281 (review) does not work, while Polymer/tools#281 works. Note that Polymer/tools#281 (comment) also does not work, so I think only a direct link works.

I think

return /^https:\/\/github\.com\/.+\/.+\/pull\/\d+$/.test( url );
should be updated to

/^https:\/\/github\.com\/.+\/.+\/pull\/\d+.+$/.test( url );

or

/^https:\/\/github\.com\/.+\/.+\/pull\/\d+/.test( url );

Thanks for opening the issue, seems you're right. Feel free to open a PR, otherwhise I'll work on it on some of the next few days.

Just published version 1.1.1, should be available in the Chrome Web Store within the next few minutes.

I can confirm it has been fixed 🎉