Update packages/builder/src/dataBinding.js

Co-authored-by: melohagan <101575380+melohagan@users.noreply.github.com>
This commit is contained in:
Andrew Kingston 2025-04-16 10:38:37 +01:00 committed by GitHub
parent eb0ea6e878
commit 442cd93191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1327,7 +1327,7 @@ const excludeExtensions = (string, binding) => {
// Regex to find prefixed bindings (e.g. exclude foox for foo)
const regex2 = new RegExp(`[a-zA-Z0-9-_]*${binding}[a-zA-Z0-9-_]+`, "g")
const matches = [...string.matchAll(regex1), ...string.matchAll(regex2)]
for (let match of matches) {
for (const match of matches) {
string = string.replace(match[0], new Array(match[0].length + 1).join("*"))
}
return string