diff options
| author | ruki <[email protected]> | 2022-01-16 11:14:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-01-16 11:14:21 +0800 |
| commit | 3a468796f68fefda636d94985346f9a4b956b3c3 (patch) | |
| tree | b9704562919d6c83b3879f5369e1f7bf197c391e /xmake/scripts/pac/github_mirror.lua | |
| parent | 027c4dd81f9f47601f228d9b015ae0de64d300a9 (diff) | |
add builtin github mirror
Diffstat (limited to 'xmake/scripts/pac/github_mirror.lua')
| -rw-r--r-- | xmake/scripts/pac/github_mirror.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/scripts/pac/github_mirror.lua b/xmake/scripts/pac/github_mirror.lua new file mode 100644 index 000000000..5ab5f9ff5 --- /dev/null +++ b/xmake/scripts/pac/github_mirror.lua @@ -0,0 +1,4 @@ +function mirror(url) + return url:gsub("github.com", "github.com.cnpmjs.org") +end + |
