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

:twisted_rightwards_arrows: Merge branch 'release/4.4.0'

parents 2dc3ba2c fd6ca0ac
Branches
Tags 4.2.3
No related merge requests found
Pipeline #214229 failed with stage
in 51 seconds
{
"name": "@vue-unistra/formbuilder",
"version": "4.3.1",
"version": "4.4.0",
"type": "module",
"types": "./types/index.d.ts",
"license": "LGPL-3.0",
......
......@@ -242,6 +242,11 @@ export const useTranslationStore = defineStore('UsfTranslation', {
if (['True', 'False'].includes(p1Content?.[p3])) return p1Content?.[p3] === 'True' ? 'Oui' : 'Non'
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
},
)
}).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