From 488ffeeed7129613fd0f5a3c38231055f30d0ea1 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Tue, 6 Jun 2023 21:41:56 +0600 Subject: [PATCH] Allow cyrillic for resolvers (#3366) --- plugins/chunter-resources/src/utils.ts | 2 +- plugins/recruit-resources/src/utils.ts | 2 +- plugins/tracker-resources/src/issues.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/chunter-resources/src/utils.ts b/plugins/chunter-resources/src/utils.ts index 6d101ea4b5..625ad86700 100644 --- a/plugins/chunter-resources/src/utils.ts +++ b/plugins/chunter-resources/src/utils.ts @@ -259,5 +259,5 @@ async function generateLocation (loc: Location, shortLink: string): Promise } function isShortId (shortLink: string): boolean { - return /^\w+-\d+$/.test(shortLink) + return /^\S+-\d+$/.test(shortLink) } export async function resolveLocation (loc: Location): Promise { diff --git a/plugins/tracker-resources/src/issues.ts b/plugins/tracker-resources/src/issues.ts index 9aaac56ff0..8b3afc0a1b 100644 --- a/plugins/tracker-resources/src/issues.ts +++ b/plugins/tracker-resources/src/issues.ts @@ -14,7 +14,7 @@ export function getIssueId (project: Project, issue: Issue): string { } export function isIssueId (shortLink: string): boolean { - return /^\w+-\d+$/.test(shortLink) + return /^\S+-\d+$/.test(shortLink) } export async function getIssueTitle (client: TxOperations, ref: Ref): Promise {