Skip to content

Commit

Permalink
Removed not necessary comment.
Browse files Browse the repository at this point in the history
Kuznietsov committed May 25, 2021
1 parent 1a49347 commit 7ae6c7f
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ import { i18n } from '@kbn/i18n';
export function replaceVars(str, args = {}, vars = {}) {
try {
// we need add '[]' for emptyLabel because this value contains special characters. (https://handlebarsjs.com/guide/expressions.html#literal-segments)
// ''.split(...).join(...) as a save alternative of the replaceAll...
const template = handlebars.compile(str.split(emptyLabel).join(`[${emptyLabel}]`), {
strict: true,
knownHelpersOnly: true,

0 comments on commit 7ae6c7f

Please sign in to comment.