Allow cyrillic for resolvers (#3366)

This commit is contained in:
Denis Bykhov 2023-06-06 21:41:56 +06:00 committed by GitHub
parent d798d872aa
commit 488ffeeed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -259,5 +259,5 @@ async function generateLocation (loc: Location, shortLink: string): Promise<Reso
}
function isShortId (shortLink: string): boolean {
return /^\w+-\w+$/.test(shortLink)
return /^\S+-\S+$/.test(shortLink)
}

View File

@ -19,7 +19,7 @@ export async function objectLinkProvider (doc: RecruitDocument): Promise<string>
}
function isShortId (shortLink: string): boolean {
return /^\w+-\d+$/.test(shortLink)
return /^\S+-\d+$/.test(shortLink)
}
export async function resolveLocation (loc: Location): Promise<ResolvedLocation | undefined> {

View File

@ -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<Doc>): Promise<string> {