Skip to content

Commit 022b345

Browse files
committed
Add readonly
1 parent 625ddbc commit 022b345

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/QueryConstructor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex
66
{
77
public class QueryConstructor
88
{
9-
private static Regex _specialCharacterMatcher = new(@"[\@\@\#\#\&\&*_;,\%\|\!\(\)\{\}\[\]\^\~\?\\""\/\:\=\-]+", RegexOptions.Compiled);
10-
private static Regex _multiWhiteSpacesMatcher = new(@"\s+", RegexOptions.Compiled);
9+
private static readonly Regex _specialCharacterMatcher = new(@"[\@\@\#\#\&\&*_;,\%\|\!\(\)\{\}\[\]\^\~\?\\""\/\:\=\-]+", RegexOptions.Compiled);
10+
private static readonly Regex _multiWhiteSpacesMatcher = new(@"\s+", RegexOptions.Compiled);
1111

1212
private Settings Settings { get; }
1313

0 commit comments

Comments
 (0)