@daeryun/dr_components 0.9.78 → 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
|
+
const before = template.description;
|
|
94
95
|
template.description = template.description
|
|
95
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,9 +126,19 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
126
126
|
|
|
127
127
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
128
128
|
if (faqCount as number >= 2) {
|
|
129
|
+
const before = template.description;
|
|
129
130
|
template.description = template.description
|
|
130
131
|
.replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
|
|
131
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
|
+
|
|
132
142
|
return template;
|
|
133
143
|
}
|
|
134
144
|
|