Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
update regex to parse changeset URL
Browse files Browse the repository at this point in the history
the trac added `/webkit` at the end of the changeset URL,
causing the regex to grab changeset number fail
  • Loading branch information
myakura committed Apr 3, 2017
1 parent aacd569 commit 4dd53e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dicentra_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @return {string} url URL of Version.xcconfig at a given revision
*/
const getConfigURL = url => {
const reChangeset = /^https?:\/\/trac\.webkit\.org\/changeset\/(\d+)$/
const reChangeset = /^https?:\/\/trac\.webkit\.org\/changeset\/(\d+)\/?\w+$/
if (reChangeset.test(url)) {
const revision = parseInt(reChangeset.exec(url).slice(1))
// there wasn't Version.xcconfig before r20261
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Dicentra",
"version": "0.8.15",
"version": "0.8.16",
"description": "enhances WebKit changeset page.",
"manifest_version": 2,

Expand Down

0 comments on commit 4dd53e2

Please sign in to comment.