Skip to content
Snippets Groups Projects
Commit c18dbf0e authored by GABRIEL UGO's avatar GABRIEL UGO :speech_balloon:
Browse files

:twisted_rightwards_arrows: Merge branch 'release/4.4.1'

parents 5bce6039 2611fa26
Branches
Tags 4.2.3
No related merge requests found
Pipeline #248951 failed with stage
in 49 seconds
{
"name": "@vue-unistra/formbuilder",
"version": "4.4.0",
"version": "4.4.1",
"type": "module",
"types": "./types/index.d.ts",
"license": "LGPL-3.0",
......
......@@ -243,9 +243,9 @@ export const useTranslationStore = defineStore('UsfTranslation', {
return p1Content?.[p3] || ''
},
).replace(
/{%\s*if\s+item\.([a-zA-Z0-9_-]+)\s*==\s*'True' %}\s+(.*?)\s+{%\s*else\s+%}\s+(.*?)\s+{%\s*endif\s*%}/g,
(_: string, prop: string, p1: string, p2: string) => {
return p1Content[prop] === 'True' ? p1 : p2
/{%\s*if\s+item\.([a-zA-Z0-9_-]+)\s*(==)\s*'(.*?)' %}\s*(.*?)\s+{%\s*else\s+%}\s*(.*?)\s+{%\s*endif\s*%}/g,
(_: string, prop: string, operator: string, value: string, p1: string, p2: string) => {
return p1Content[prop] === value ? p1 : p2
},
)
}).join('')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment