mirror of
https://github.com/chainreactors/spray.git
synced 2025-09-15 11:40:13 +00:00
fix: -e not expect , https://github.com/chainreactors/spray/issues/108
This commit is contained in:
parent
cd58c410d8
commit
d21dd493f6
@ -10,11 +10,17 @@ var (
|
||||
func ParseEXTPlaceholderFunc(exts []string) func(string) []string {
|
||||
return func(s string) []string {
|
||||
ss := make([]string, len(exts))
|
||||
var n int
|
||||
for i, e := range exts {
|
||||
if strings.Contains(s, EXTChar) {
|
||||
n++
|
||||
ss[i] = strings.Replace(s, EXTChar, e, -1)
|
||||
}
|
||||
}
|
||||
return ss
|
||||
if n == 0 {
|
||||
return []string{s}
|
||||
} else {
|
||||
return ss
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 1f05d5f7c2506df8d635997ed1d3b39e0b7c9502
|
||||
Subproject commit fe95f1f22d18b6cf2046b004191f5bd745f1c578
|
Loading…
x
Reference in New Issue
Block a user