trimQuote is like unquoteString but simply strips surrounding quotes. This is incorrect, but is behavior done by the legacy implementation.
(in []byte)
| 524 | // trimQuote is like unquoteString but simply strips surrounding quotes. |
| 525 | // This is incorrect, but is behavior done by the legacy implementation. |
| 526 | func trimQuote(in []byte) []byte { |
| 527 | if len(in) >= 2 && in[0] == '"' && in[len(in)-1] == '"' { |
| 528 | in = in[1 : len(in)-1] |
| 529 | } |
| 530 | return in |
| 531 | } |
no outgoing calls
no test coverage detected