MCPcopy
hub / github.com/gofiber/fiber / RemoveEscapeCharBytes

Function RemoveEscapeCharBytes

path.go:666–675  ·  view source on GitHub ↗

RemoveEscapeCharBytes removes escape characters

(word []byte)

Source from the content-addressed store, hash-verified

664
665// RemoveEscapeCharBytes removes escape characters
666func 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.

Callers 1

RoutePatternMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected