diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3910b05..8f1ab92 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: language: system files: ^src/* - repo: https://github.com/duolingo/pre-commit-hooks.git - rev: 1.7.0 + rev: 1.8.0 hooks: - id: duolingo exclude: config.yaml diff --git a/src/engines/github.ts b/src/engines/github.ts index 033d99c..db61c37 100644 --- a/src/engines/github.ts +++ b/src/engines/github.ts @@ -147,11 +147,9 @@ const engine: Engine = { snippet: item.body ? `
${marked(item.body)}` : undefined, - title: `${ - item.pull_request ? "PR" : "Issue" - } in ${item.html_url.match( - /github\.com\/([^\/]+\/[^\/]+)\//, - )?.[1]}: ${item.title}`, + title: `${item.pull_request ? "PR" : "Issue"} in ${ + item.html_url.match(/github\.com\/([^\/]+\/[^\/]+)\//)?.[1] + }: ${item.title}`, url: item.html_url, })); } catch { diff --git a/src/engines/groups.ts b/src/engines/groups.ts index 05a3516..7f48c88 100644 --- a/src/engines/groups.ts +++ b/src/engines/groups.ts @@ -50,9 +50,9 @@ const engine: Engine = { .map(g => ({ snippet: g.description ?? undefined, title: `${g.name}: ${g.email}`, - url: `https://groups.google.com/a/${domain}/forum/#!members/${g.email?.split( - "@", - )[0]}`, + url: `https://groups.google.com/a/${domain}/forum/#!members/${ + g.email?.split("@")[0] + }`, })); }, };