Fix recruit link resolver (#5464)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-04-25 10:31:57 +05:00 committed by GitHub
parent b282edfc65
commit 33eef25863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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