@@ -226,6 +226,68 @@ var searchAndReplaceStrings = [
226226 searchForRegex : / h r e f = \\ " \/ c o m m o n - h e a l t h - q u e s t i o n s \/ / gm,
227227 replaceWithStr : 'href=\\"https://www.nhs.uk/common-health-questions/' ,
228228 } ,
229+ {
230+ comment1 : "=============================================================" ,
231+ comment2 : "Vaccinations " ,
232+ comment3 : "=============================================================" ,
233+ } ,
234+ {
235+ searchForRegex : / : \s ? " h t t p s : \/ \/ a p i .n h s .u k \/ v a c c i n a t i o n s \/ / gm,
236+ replaceWithStr :
237+ ': "https://' + requestHostnameEnv + "/nhs-website-content/vaccinations/" ,
238+ } ,
239+ {
240+ searchForRegex : / : \s ? " h t t p s : \/ \/ w w w .n h s .u k \/ v a c c i n a t i o n s \/ / gm,
241+ replaceWithStr :
242+ ': "https://' + requestHostnameEnv + "/nhs-website-content/vaccinations/" ,
243+ } ,
244+ {
245+ searchForRegex : / : \s ? " \/ v a c c i n a t i o n s \/ / gm,
246+ replaceWithStr :
247+ ': "https://' + requestHostnameEnv + "/nhs-website-content/vaccinations/" ,
248+ } ,
249+ {
250+ searchForRegex : / h r e f = \\ " h t t p s : \/ \/ a p i .n h s .u k \/ v a c c i n a t i o n s \/ / gm,
251+ replaceWithStr : 'href=\\"https://www.nhs.uk/vaccinations/' ,
252+ } ,
253+ {
254+ searchForRegex : / h r e f = \\ " \/ v a c c i n a t i o n s \/ / gm,
255+ replaceWithStr : 'href=\\"https://www.nhs.uk/vaccinations/' ,
256+ } ,
257+ {
258+ comment1 : "=============================================================" ,
259+ comment2 : "Contraception " ,
260+ comment3 : "=============================================================" ,
261+ } ,
262+ {
263+ searchForRegex : / : \s ? " h t t p s : \/ \/ a p i .n h s .u k \/ c o n t r a c e p t i o n \/ / gm,
264+ replaceWithStr :
265+ ': "https://' +
266+ requestHostnameEnv +
267+ "/nhs-website-content/contraception/" ,
268+ } ,
269+ {
270+ searchForRegex : / : \s ? " h t t p s : \/ \/ w w w .n h s .u k \/ c o n t r a c e p t i o n \/ / gm,
271+ replaceWithStr :
272+ ': "https://' +
273+ requestHostnameEnv +
274+ "/nhs-website-content/contraception/" ,
275+ } ,
276+ {
277+ searchForRegex : / : \s ? " \/ c o n t r a c e p t i o n \/ / gm,
278+ replaceWithStr :
279+ ': "https://' +
280+ requestHostnameEnv +
281+ "/nhs-website-content/contraception/" ,
282+ } ,
283+ {
284+ searchForRegex : / h r e f = \\ " h t t p s : \/ \/ a p i .n h s .u k \/ c o n t r a c e p t i o n \/ / gm,
285+ replaceWithStr : 'href=\\"https://www.nhs.uk/contraception/' ,
286+ } ,
287+ {
288+ searchForRegex : / h r e f = \\ " \/ c o n t r a c e p t i o n \/ / gm,
289+ replaceWithStr : 'href=\\"https://www.nhs.uk/contraception/' ,
290+ } ,
229291] ;
230292
231293var responseContent = context . getVariable ( "response.content" ) ;
0 commit comments