summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/asgiturl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-07 00:32:45 +0800
committerruki <[email protected]>2019-06-06 21:16:30 +0800
commit7021c6e06c49f78ee948c69c51322fa64071a1b0 (patch)
treeebca9c44fa81a309b5cb598b8d767e84ac021d14 /xmake/modules/devel/git/asgiturl.lua
parentf5f397ac93f8f818fd447dc8a81de4d5f8299fe8 (diff)
modify code style
Diffstat (limited to 'xmake/modules/devel/git/asgiturl.lua')
-rw-r--r--xmake/modules/devel/git/asgiturl.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/devel/git/asgiturl.lua b/xmake/modules/devel/git/asgiturl.lua
index 2b8f5ea7e..4fd6ba742 100644
--- a/xmake/modules/devel/git/asgiturl.lua
+++ b/xmake/modules/devel/git/asgiturl.lua
@@ -21,7 +21,8 @@
-- imports
import("checkurl")
-local custom_protocol = {
+local custom_protocol =
+{
["github:"] = "https://github.com"
, ["gitlab:"] = "https://gitlab.com"
, ["gitee:"] = "https://gitee.com"
@@ -36,6 +37,8 @@ local custom_protocol = {
--
function main(url)
+
+ -- check
url = url:trim()
assert(#url > 0)