Permalink
Browse files

Fix to parse enums with negative numbers

  • Loading branch information...
1 parent b582cf3 commit 9e5ce835db4070a9db7aab9f71b561731d6eaadf @stowellt stowellt committed Oct 6, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 EditorExtensions/Misc/CodeGeneration/IntellisenseParser.cs
@@ -19,7 +19,7 @@ public static class IntellisenseParser
{
private const string DefaultModuleName = "server";
private const string ModuleNameAttributeName = "TypeScriptModule";
- private static readonly Regex IsNumber = new Regex("^[0-9a-fx]+[ul]{0,2}$", RegexOptions.IgnoreCase | RegexOptions.Compiled);
+ private static readonly Regex IsNumber = new Regex("^[\\-0-9a-fx]+[ul]{0,2}$", RegexOptions.IgnoreCase | RegexOptions.Compiled);
internal static class Ext
{

0 comments on commit 9e5ce83

Please sign in to comment.