Fix template function (#105)
This commit is contained in:
@@ -4,7 +4,7 @@ const template = (props, value) => {
|
||||
const keys = Object.keys(props);
|
||||
|
||||
return keys.reduce(
|
||||
(current, key) => current.replace(`\${${key}}`, props[key]),
|
||||
(current, key) => current.replace(`{${key}}`, props[key]),
|
||||
value
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user