import "code.gitea.io/gitea/routers/utils"
IsExternalURL checks if rawURL points to an external URL like http://example.com
IsValidSlackChannel validates a channel name conforms to what slack expects. It makes sure a channel name cannot be empty and invalid ( only an # )
RemoveUsernameParameterSuffix returns the username parameter without the (fullname) suffix - leaving just the username
SanitizeFlashErrorString will sanitize a flash error string
Package utils imports 4 packages (graph) and is imported by 35 packages. Updated 2020-12-11. Refresh now. Tools for package owners.