Skip to content

Commit

Permalink
Fix word boudary in the regex (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
vidya-ram committed Jun 26, 2024
1 parent 84046f5 commit eccf429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funnel/assets/js/membership.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const Membership = {
const data = await response.json();
if (data) {
const vueFormHtml = data.form;
this.memberForm = vueFormHtml.replace(/<\/?\bscript/gi, (tag) =>
this.memberForm = vueFormHtml.replace(/<\/?script\b/gi, (tag) =>
tag === '<script' ? '<script2' : '</script2',
);
this.errorMsg = '';
Expand Down

0 comments on commit eccf429

Please sign in to comment.