Skip to content
Snippets Groups Projects
Unverified Commit 5c803f2e authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(config): check for undefined str when validating handlebars helpers (#16047)

parent ed639b47
Branches
No related tags found
No related merge requests found
......@@ -17,10 +17,10 @@ handlebars.registerHelper(
(context || '').replace(new RegExp(find, 'g'), replace) // TODO #12873
);
handlebars.registerHelper('lowercase', (str: string) => str.toLowerCase());
handlebars.registerHelper('lowercase', (str: string) => str?.toLowerCase());
handlebars.registerHelper('containsString', (str, subStr, options) =>
str.includes(subStr)
handlebars.registerHelper('containsString', (str, subStr) =>
str?.includes(subStr)
);
handlebars.registerHelper({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment