mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 11:01:54 +03:00
Allow cyrillic for resolvers (#3366)
This commit is contained in:
parent
d798d872aa
commit
488ffeeed7
@ -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)
|
||||
}
|
||||
|
@ -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> {
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user