mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 22:15:04 +02:00
Date process funcs (#8441)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ export function parseContext (value: any): SelectedContext | undefined {
|
||||
if (typeof value !== 'string') return
|
||||
const index = value.indexOf('${')
|
||||
if (index === -1) return
|
||||
const endIndex = value.indexOf('}')
|
||||
const endIndex = value.lastIndexOf('}')
|
||||
if (endIndex === -1) return
|
||||
const content = value.substring(index + 1, endIndex + 1)
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user