Skip to content

Instantly share code, notes, and snippets.

@midned
Created July 1, 2016 04:53
Show Gist options
  • Save midned/c01817a24bd2ceaa47ea3401a6b14b4e to your computer and use it in GitHub Desktop.
Save midned/c01817a24bd2ceaa47ea3401a6b14b4e to your computer and use it in GitHub Desktop.
inline constexpr bool isSpecialScheme(const char* scheme) {
return scheme == "ftp" || scheme == "file" || scheme == "gopher" || scheme == "http" || scheme == "https" || scheme == "ws" || scheme == "wss";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment