fix(core): update

This commit is contained in:
2022-03-14 13:26:48 +01:00
parent 618b3da86e
commit ddfae30a18
15 changed files with 17592 additions and 754 deletions

View File

@@ -1,9 +1,9 @@
import plugins = require('./smartpath.plugins');
import * as plugins from './smartpath.plugins.js';
export let isDir = function(pathArg: string) {
export let isDir = function (pathArg: string) {
return !isFile(pathArg);
};
export let isFile = function(pathArg) {
export let isFile = function (pathArg) {
return /\.[a-zA-Z]*$/.test(pathArg); // checks if there is a .anything at the end
};