now has better structure
This commit is contained in:
11
ts/smartpath.get.ts
Normal file
11
ts/smartpath.get.ts
Normal 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";
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user