mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 11:42:30 +03:00
Fix recruit link resolver (#5464)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
b282edfc65
commit
33eef25863
@ -25,7 +25,7 @@ export async function objectLinkProvider (doc: RecruitDocument): Promise<string>
|
||||
}
|
||||
|
||||
function isShortId (shortLink: string): boolean {
|
||||
return /^\S+-\d+$/.test(shortLink)
|
||||
return /^\w+-\d+$/.test(shortLink)
|
||||
}
|
||||
|
||||
export async function resolveLocation (loc: Location): Promise<ResolvedLocation | undefined> {
|
||||
|
Loading…
Reference in New Issue
Block a user