diff options
Diffstat (limited to 'source/github-helpers')
-rw-r--r-- | source/github-helpers/index.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/github-helpers/index.ts b/source/github-helpers/index.ts index 7f79612d..0eea0b02 100644 --- a/source/github-helpers/index.ts +++ b/source/github-helpers/index.ts @@ -65,7 +65,7 @@ export function compareNames(username: string, realname: string): boolean { * @param {string} selector A css selector. */ export function getScopedSelector(selector: string): string { - return selector.split(',').map(sub => `:scope > ${sub.trim()}`).join(','); + return selector.split(',').map(sub => `:scope > ${sub.trim()}`).join(); } export function looseParseInt(text: string): number { @@ -109,3 +109,8 @@ export function preventPrCommitLinkLoss(url: string, pr: string, commit: string, return `[\`${commit}\` (#${pr})](${url})`; } + +// https://github.com/idimetrix/text-case/blob/master/packages/upper-case-first/src/index.ts +export function upperCaseFirst(input: string): string { + return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase(); +} |