@daeryun/dr_components 0.9.97 → 0.9.98
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.
|
@@ -89,7 +89,7 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
89
89
|
const convertFaqItemType = (template) => {
|
|
90
90
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
91
91
|
if (faqElementMaxCountInContents >= 2) {
|
|
92
|
-
template.description = template.description.replaceAll(
|
|
92
|
+
template.description = template.description.replaceAll(/<div[^>]*item(scope|type)[^>]*>/gi, '<div>');
|
|
93
93
|
return template;
|
|
94
94
|
}
|
|
95
95
|
return template;
|
|
@@ -121,7 +121,10 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
121
121
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
122
122
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
123
123
|
if ((faqElementMaxCountInContents as number) >= 2) {
|
|
124
|
-
template.description = template.description.replaceAll(
|
|
124
|
+
template.description = template.description.replaceAll(
|
|
125
|
+
/<div[^>]*item(scope|type)[^>]*>/gi,
|
|
126
|
+
'<div>'
|
|
127
|
+
);
|
|
125
128
|
|
|
126
129
|
return template;
|
|
127
130
|
}
|