Skip to content

Commit

Permalink
do not parse # and / and small texts
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Aug 2, 2024
1 parent 4c32588 commit e5ba91d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ray2sing/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ func GenerateConfigLite(input string) (string, error) {
var outbounds []T.Outbound
counter := 0
for _, config := range configArray {

if len(config) < 5 || config[0] == '#' || config[0] == '/' {
continue
}
detourTag := ""

chains := strings.Split(config, "&&detour=")
for _, chain := range chains {
fmt.Printf("%s", chain)
Expand Down

0 comments on commit e5ba91d

Please sign in to comment.