@daeryun/dr_components 0.9.77 → 0.9.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91,8 +91,8 @@ const LawInfoNew = ({ data, tel }) => {
91
91
  };
92
92
  const convertFaqItemType = (template) => {
93
93
  if (faqCount >= 2) {
94
- template.description = template.description.replaceAll('itemtype="https://schema.org/FAQPage"', '');
95
- console.log('변경된 template : ', template);
94
+ template.description = template.description
95
+ .replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
96
96
  return template;
97
97
  }
98
98
  return template;
@@ -126,8 +126,9 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
126
126
 
127
127
  const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
128
128
  if (faqCount as number >= 2) {
129
- template.description = template.description.replaceAll('itemtype="https://schema.org/FAQPage"', '');
130
- console.log('변경된 template : ', template);
129
+ template.description = template.description
130
+ .replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
131
+
131
132
  return template;
132
133
  }
133
134