File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/services/content-api/parsers Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ function _extractCalloutHeading(response: ContentApiVaccineResponse): string {
142142 return "" ;
143143 }
144144
145- const match = calloutElement . text . match ( / < h 3 > ( .* ?) < \/ h 3 > / ) ;
145+ const match = calloutElement . text . match ( / < h \d > ( .* ?) < \/ h \d > / ) ;
146146 return match ? match [ 1 ] : "" ;
147147}
148148
@@ -153,8 +153,7 @@ function _extractCalloutContent(response: ContentApiVaccineResponse): string {
153153 return "" ;
154154 }
155155
156- const content = calloutElement . text . replace ( / < h 3 > .* ?< \/ h 3 > / , "" ) . trim ( ) ;
157-
156+ const content = calloutElement . text . replace ( / < h \d > .* ?< \/ h \d > / , "" ) . trim ( ) ;
158157 return content ;
159158}
160159
Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ export const genericVaccineContentAPIResponse: ContentApiVaccineResponse = {
564564 position : 0 ,
565565 "@type" : "WebPageElement" ,
566566 name : "Callout" ,
567- text : "<h3 >Callout heading</h3 ><p>Callout content</p>" ,
567+ text : "<h2 >Callout heading</h2 ><p>Callout content</p>" ,
568568 } ,
569569 ] ,
570570 } ,
You can’t perform that action at this time.
0 commit comments