Date process funcs (#8441)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2025-04-03 00:22:53 +07:00
committed by GitHub
parent 241d08fd89
commit 073017ae67
48 changed files with 798 additions and 195 deletions
+1 -1
View File
@@ -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 {