fix type cast

This commit is contained in:
Garrett Mills 2020-09-05 11:24:48 -05:00
parent 380d50be43
commit b780d35db1
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -187,7 +187,7 @@ export default class ViewEngine extends LifecycleUnit {
// Generate the partial name.
// This is done by taking the relative path from the partials dir, removing the suffix,
// and replacing directory separators with the standard : identifier.
let partial_name = entry.path.replace(partials_path, '').slice(0, -1 * (this.get_file_extension()).length)
let partial_name = entry.path.replace(partials_path.to_local, '').slice(0, -1 * (this.get_file_extension()).length)
if ( partial_name.startsWith('/') ) partial_name = partial_name.slice(1)
partial_name = partial_name.replace(/\//g, ':')