RemoveEscapeCharBytes removes escape characters
(word []byte)
| 664 | |
| 665 | // RemoveEscapeCharBytes removes escape characters |
| 666 | func RemoveEscapeCharBytes(word []byte) []byte { |
| 667 | dst := 0 |
| 668 | for src := range word { |
| 669 | if word[src] != '\\' { |
| 670 | word[dst] = word[src] |
| 671 | dst++ |
| 672 | } |
| 673 | } |
| 674 | return word[:dst] |
| 675 | } |
| 676 | |
| 677 | // CheckConstraint validates if a param matches the given constraint. |
| 678 | // Kept for backward compatibility with external callers. |