Update src/index.ts

Co-authored-by: Cina Saffary <itscina@gmail.com>
This commit is contained in:
Grant Birkinbine 2023-12-13 10:02:54 -07:00 committed by GitHub
parent 9dd38ad790
commit a5f361f3f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,7 +277,7 @@ async function wranglerCommands() {
) { ) {
// If this is a workers or pages deployment, try to extract the deployment URL // If this is a workers or pages deployment, try to extract the deployment URL
let deploymentUrl = ""; let deploymentUrl = "";
const deploymentUrlMatch = stdOut.match(/https?:\/\/[a-zA-Z0-9-\.\/]+/); const deploymentUrlMatch = stdOut.match(/https?:\/\/[a-zA-Z0-9-./]+/);
if (deploymentUrlMatch && deploymentUrlMatch[0]) { if (deploymentUrlMatch && deploymentUrlMatch[0]) {
deploymentUrl = deploymentUrlMatch[0].trim(); deploymentUrl = deploymentUrlMatch[0].trim();
setOutput("deployment-url", deploymentUrl); setOutput("deployment-url", deploymentUrl);