From 33eef258635f8ce72faf540463f14b87a6c02f5c Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Thu, 25 Apr 2024 10:31:57 +0500 Subject: [PATCH] Fix recruit link resolver (#5464) Signed-off-by: Denis Bykhov --- plugins/recruit-resources/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/recruit-resources/src/utils.ts b/plugins/recruit-resources/src/utils.ts index b9eac83661..f334f699e0 100644 --- a/plugins/recruit-resources/src/utils.ts +++ b/plugins/recruit-resources/src/utils.ts @@ -25,7 +25,7 @@ export async function objectLinkProvider (doc: RecruitDocument): Promise } function isShortId (shortLink: string): boolean { - return /^\S+-\d+$/.test(shortLink) + return /^\w+-\d+$/.test(shortLink) } export async function resolveLocation (loc: Location): Promise {