Skip to content

Commit b183298

Browse files
authored
Merge pull request #3774 from TBM13/feature/calculatorHexNumbers
Calculator: Support hex numbers
2 parents 40e5c04 + d68964b commit b183298

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)