Skip to content

Commit

Permalink
Make header accept comma (#13)
Browse files Browse the repository at this point in the history
* Make header accept comma

* Add ampersand too

---------

Co-authored-by: Pieter-Jan Briers <[email protected]>
  • Loading branch information
nikthechampiongr and PJB3005 authored Apr 16, 2024
1 parent b9463a4 commit 271cb03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SS14.Changelog/Controllers/WebhookController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class WebhookController : Controller
private static readonly Regex IsChangelogFileRegex = new Regex(@"^Resources/Changelog/Parts/.*\.yml$");

private static readonly Regex ChangelogHeaderRegex =
new Regex(@"^\s*(?::cl:|🆑) *([a-z0-9_\- ]+)?\s*$", RegexOptions.IgnoreCase | RegexOptions.Multiline);
new Regex(@"^\s*(?::cl:|🆑) *([a-z0-9_\- ,&]+)?\s*$", RegexOptions.IgnoreCase | RegexOptions.Multiline);

private static readonly Regex ChangelogEntryRegex =
new Regex(@"^ *[*-]? *(add|remove|tweak|fix|bug|bugfix): *([^\n\r]+)\r?$", RegexOptions.IgnoreCase);
Expand Down Expand Up @@ -221,4 +221,4 @@ private void HandlePullRequest(GHPullRequestEvent eventData)
};
}
}
}
}

0 comments on commit 271cb03

Please sign in to comment.