fix(core): update

This commit is contained in:
2022-07-24 15:30:19 +02:00
parent 97400fa501
commit b382256cc7
21 changed files with 13690 additions and 1078 deletions

View File

@@ -1,7 +1,7 @@
// This file contains code that makes it easy to search handlebar templates for variables.
// Why? To get a clue if you are missing some.
import * as plugins from './smarthbs.plugins';
import * as plugins from './smarthbs.plugins.js';
// the curly regex objects
let tripleCurlyRegex = /{{{\s*[\w\.]+\s*}}}/g;
@@ -26,7 +26,7 @@ export let findVarsInHbsString = async (hbsStringArg: string) => {
}
// make sure we are clean from curly brackets
varNameArray = varNameArray.map(x => {
varNameArray = varNameArray.map((x) => {
return x.match(nameInCurlsRegex)[0];
});