Skip to content

Commit 5ff8a5b

Browse files
Jack251970Copilot
andauthored
Use compiled regex
Co-authored-by: Copilot <[email protected]>
1 parent 5161bbe commit 5ff8a5b

File tree

1 file changed

+1
-1
lines changed
  • Plugins/Flow.Launcher.Plugin.Calculator

1 file changed

+1
-1
lines changed

Plugins/Flow.Launcher.Plugin.Calculator/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class Main : IPlugin, IPluginI18n, ISettingProvider
2424
@"[ei]|[0-9]|0x[\da-fA-F]+|[\+\%\-\*\/\^\., ""]|[\(\)\|\!\[\]]" +
2525
@")+$", RegexOptions.Compiled);
2626
private static readonly Regex RegBrackets = new Regex(@"[\(\)\[\]]", RegexOptions.Compiled);
27-
private static readonly Regex ThousandGroupRegex = new Regex(@"\B(?=(\d{3})+(?!\d))");
27+
private static readonly Regex ThousandGroupRegex = new Regex(@"\B(?=(\d{3})+(?!\d))", RegexOptions.Compiled);
2828
private static readonly Regex NumberRegex = new Regex(@"[\d\.,]+", RegexOptions.Compiled);
2929

3030
private static Engine MagesEngine;

0 commit comments

Comments
 (0)