mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2026-04-22 00:00:04 +08:00
add node_modules
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
var url = require('url');
|
||||
var prependHttp = require('prepend-http');
|
||||
|
||||
module.exports = function (x) {
|
||||
var withProtocol = prependHttp(x);
|
||||
var parsed = url.parse(withProtocol);
|
||||
|
||||
if (withProtocol !== x) {
|
||||
parsed.protocol = null;
|
||||
}
|
||||
|
||||
return parsed;
|
||||
};
|
||||
Reference in New Issue
Block a user