mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[PTRun][WebSearch] Enable analyzer and fix warnings (#16938)
This commit is contained in:
committed by
GitHub
parent
3b04cfd267
commit
ffdb5d44d7
@@ -152,7 +152,7 @@ namespace Community.PowerToys.Run.Plugin.WebSearch
|
||||
{
|
||||
if (input.EndsWith(":", StringComparison.OrdinalIgnoreCase)
|
||||
&& !input.StartsWith("http", StringComparison.OrdinalIgnoreCase)
|
||||
&& !input.Contains("/", StringComparison.OrdinalIgnoreCase)
|
||||
&& !input.Contains('/', StringComparison.OrdinalIgnoreCase)
|
||||
&& !input.All(char.IsDigit)
|
||||
&& System.Text.RegularExpressions.Regex.IsMatch(input, @"^([a-z][a-z0-9+\-.]*):"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user