From d6ed98a5d7376d5bcc51f5f4dd2a88df74b689ad Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Tue, 12 Mar 2024 13:48:26 -0400 Subject: [PATCH] build(semantic-pr): allow special chars in scope --- .github/workflows/validator.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validator.yml b/.github/workflows/validator.yml index 5490874ba..780ee8836 100644 --- a/.github/workflows/validator.yml +++ b/.github/workflows/validator.yml @@ -14,7 +14,7 @@ jobs: with: script: | const title = context.payload.pull_request.title; - const regex = /^(?build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|deps)(?\(\w+\)?((?=:\s)|(?=!:\s)))?(?!)?(?:\s.*)?/gm; + const regex = /^(?build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|deps)(?\([\w\-\/]+\)?((?=:\s)|(?=!:\s)))?(?!)?(?:\s.*)?/gm; const match = regex.exec(title); if (!match) {