fix issue with regex on safari

This commit is contained in:
Peter Clement 2023-02-06 16:36:03 +00:00
parent 2320bd574e
commit 4e88981ce8
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
let open = false
//eslint-disable-next-line
const STRIP_NAME_REGEX = /(?<=\.)(.*?)(?=\ })/g
const STRIP_NAME_REGEX = /(\w+?)(?=\ })/g
// Strips the name out of the value which is {{ env.Variable }} resulting in an array like ["Variable"]
$: hbsValue = String(value)?.match(STRIP_NAME_REGEX) || []