| |
@@ -67,7 +67,8 @@
|
| |
result = string.gsub(result, ":", ".")
|
| |
-- some projects have a name that end up in a number, and *also* add release
|
| |
-- numbers on top of it, keep a - prefix before version strings
|
| |
- result = string.gsub(result, "%-v([%.%d])", "-%1")
|
| |
+ result = string.gsub(result, "%-v([%.%d])$", "-%1")
|
| |
+ result = string.gsub(result, "%-v([%.%d]%-)", "-%1")
|
| |
return(result)
|
| |
end
|
| |
|
| |
example:
If goipath is
github.com/v2fly/v2ray-core/v4/main/confloader
, the goname should begolang-github-v2fly-v2ray-core-4-main-confloader
.But in current version go.lua, function rpmname, the result is
golang-github-2fly-2ray-core-4-main-confloader
.