Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shouldEscape (0.21 sec)

  1. cmd/api-utils.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"fmt"
    	"net/http"
    	"reflect"
    	"runtime"
    	"strings"
    )
    
    func shouldEscape(c byte) bool {
    	if 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z' || '0' <= c && c <= '9' {
    		return false
    	}
    
    	switch c {
    	case '-', '_', '.', '/', '*':
    		return false
    	}
    	return true
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top