// Token: 0x06002977 RID: 10615 RVA: 0x00098A98 File Offset: 0x00096C98 internal static bool IsValidScheme(string scheme) { if (scheme == null || scheme.Length == 0 || !CodeConnectAccess.IsAsciiLetter(scheme[0])) { return(false); } for (int i = scheme.Length - 1; i > 0; i--) { if (!CodeConnectAccess.IsAsciiLetterOrDigit(scheme[i]) && scheme[i] != '+' && scheme[i] != '-' && scheme[i] != '.') { return(false); } } return(true); }
internal static bool IsValidScheme(string scheme) { if (scheme == null || scheme.Length == 0 || !CodeConnectAccess.IsAsciiLetter(scheme[0])) { return(false); } for (int index = scheme.Length - 1; index > 0; --index) { if (!CodeConnectAccess.IsAsciiLetterOrDigit(scheme[index]) && (int)scheme[index] != 43 && ((int)scheme[index] != 45 && (int)scheme[index] != 46)) { return(false); } } return(true); }