Skip to content
Snippets Groups Projects
Commit a86eceb7 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: default empty string for replace

parent 821bd600
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@ handlebars.registerHelper('stringToPrettyJSON', (input: string): string =>
// istanbul ignore next
handlebars.registerHelper(
'replace',
(find, replace, context) => context.replace(new RegExp(find, 'g'), replace) // TODO #12873
(find, replace, context) =>
(context || '').replace(new RegExp(find, 'g'), replace) // TODO #12873
);
export const exposedConfigOptions = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment