mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 00:03:05 +00:00
Merge pull request #1305 from ZaneH/feat/handle-github-webhook
Implement GitHub-compatible webhook
This commit is contained in:
4 files changed
+724
-147
No files matched your search
@@ -22,3 +22,13 @@ export function trimSpecial(str?: string): string {
|
||||
if (!str) return "";
|
||||
return str.replace(SPECIAL_CHAR, "").trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* Capitalizes the first letter of a string.
|
||||
* @param str The string to capitalize.
|
||||
* @returns The capitalized string.
|
||||
*/
|
||||
export function capitalize(str: string): string {
|
||||
if (!str) return "";
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
}
|
||||
Reference in new issue
Block a user