mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-12 22:42:18 +00:00
fix parser for escape
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -4,6 +4,7 @@ import (
|
||||
"io"
|
||||
)
|
||||
|
||||
// State is the internal state of parser.
|
||||
type State byte
|
||||
|
||||
const (
|
||||
@@ -50,7 +51,7 @@ func (v *Reader) Read(b []byte) (int, error) {
|
||||
p = append(p, x)
|
||||
}
|
||||
case StateEscape:
|
||||
p = append(p, x)
|
||||
p = append(p, '\\', x)
|
||||
v.state = StateContent
|
||||
case StateDoubleQuote:
|
||||
switch x {
|
||||
|
||||
Reference in new issue
Block a user