now has better structure

This commit is contained in:
2016-03-20 18:59:30 +01:00
parent b113dcfbe0
commit 2bd242ac57
9 changed files with 145 additions and 47 deletions

11
ts/smartpath.get.ts Normal file
View File

@@ -0,0 +1,11 @@
/// <reference path="typings/main.d.ts" />
import plugins = require("./smartpath.plugins");
export let type = function(pathStringArg:string):string {
let urlRegex = /http[s|\s]:\/\/.*/i
if(urlRegex.exec(pathStringArg)){
return "url";
} else {
return "local";
};
};