We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03eabbb + b22ae67 commit 5025fd3Copy full SHA for 5025fd3
.github/workflows/validate.yml
@@ -64,7 +64,8 @@ jobs:
64
const checkbox2 = /\[x\].*?I have read and accepted/i.test(body);
65
66
// 2. URL must be on the exact "The site content can be seen at ..." line
67
- const urlLineRegex = /^[ \t]*-[ \t]*The site content can be seen at[ \t]+(https?:\/\/[^\s]+)/m;
+ // https://regex101.com/r/N36fsT
68
+ const urlLineRegex = /^[ \t]*-[ \t]*The site content can be seen at[ \t]+(?:<)?(?:\[.*?\]\()?https?:\/\/[^\s>()]+(?:\))?(?:>)?/m;
69
const urlMatch = urlLineRegex.exec(body);
70
const urlValid = urlMatch !== null;
71
0 commit comments