Skip to content

Commit d68964b

Browse files
committed
Calculator: Support hex numbers
1 parent 40e5c04 commit d68964b

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
@@ -20,7 +20,7 @@ public class Main : IPlugin, IPluginI18n, ISettingProvider
2020
@"bin2dec|hex2dec|oct2dec|" +
2121
@"factorial|sign|isprime|isinfty|" +
2222
@"==|~=|&&|\|\||(?:\<|\>)=?|" +
23-
@"[ei]|[0-9]|[\+\%\-\*\/\^\., ""]|[\(\)\|\!\[\]]" +
23+
@"[ei]|[0-9]|0x[\da-fA-F]+|[\+\%\-\*\/\^\., ""]|[\(\)\|\!\[\]]" +
2424
@")+$", RegexOptions.Compiled);
2525
private static readonly Regex RegBrackets = new Regex(@"[\(\)\[\]]", RegexOptions.Compiled);
2626
private static Engine MagesEngine;

0 commit comments

Comments
 (0)