draft: refactor project so it sits on top of a standalone app
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
var NO_PROTOCOL_RESOURCE_PATTERN = /^\/\//;
|
||||
|
||||
function hasProtocol(uri) {
|
||||
return !NO_PROTOCOL_RESOURCE_PATTERN.test(uri);
|
||||
}
|
||||
|
||||
module.exports = hasProtocol;
|
||||
Reference in New Issue
Block a user