@daeryun/dr_components 0.9.77 → 0.9.79

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,18 @@ 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
+ const before = template.description;
95
+ template.description = template.description
96
+ .replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
97
+ if (before !== template.description) {
98
+ console.log('✅ FAQPage itemType 제거됨');
99
+ console.log('Before:', before.substring(0, 200) + '...');
100
+ console.log('After:', template.description.substring(0, 200) + '...');
101
+ }
102
+ else {
103
+ console.log('❌ FAQPage itemType 제거되지 않음 - 패턴을 찾을 수 없음');
104
+ console.log('Content sample:', before.substring(0, 200) + '...');
105
+ }
96
106
  return template;
97
107
  }
98
108
  return template;
@@ -126,8 +126,19 @@ 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
+ const before = template.description;
130
+ template.description = template.description
131
+ .replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
132
+
133
+ if (before !== template.description) {
134
+ console.log('✅ FAQPage itemType 제거됨');
135
+ console.log('Before:', before.substring(0, 200) + '...');
136
+ console.log('After:', template.description.substring(0, 200) + '...');
137
+ } else {
138
+ console.log('❌ FAQPage itemType 제거되지 않음 - 패턴을 찾을 수 없음');
139
+ console.log('Content sample:', before.substring(0, 200) + '...');
140
+ }
141
+
131
142
  return template;
132
143
  }
133
144