Skip to content

Commit

Permalink
Merge pull request #1683 from BladeRunnerJS/brjs-regex-release-build-fix
Browse files Browse the repository at this point in the history
Brjs regex release build fix
  • Loading branch information
thecapdan committed Mar 30, 2016
2 parents 5ae9a69 + 577a2fd commit 3dfc992
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class GitHubAPIBridge
void uploadAssetForRelease(File brjsZip, Release release)
{
logger.quiet "uploading file ${brjsZip.path} for release ${release.tagVersion}"
def uploadUrl = release.upload_url.replaceFirst(/{\?[\S]+}/,'') // remove the {abc,xyz} templates at the end of the URL, see https://developer.github.com/v3/#hypermedia
def uploadUrl = release.upload_url.replaceFirst("\\{\\?[\\S]+\\}",'') // remove the {abc,xyz} templates at the end of the URL, see https://developer.github.com/v3/#hypermedia
def response = doRequest(uploadsPrefix, "post", uploadUrl, "name=${brjsZip.name}", "application/zip", brjsZip)
logger.quiet "successfully added release asset, ${brjsZip.toString()}"
}
Expand Down

0 comments on commit 3dfc992

Please sign in to comment.