Permalink
Browse files

Merge pull request #232 from trs79/master

Fix to parse enums with negative numbers
  • Loading branch information...
2 parents b582cf3 + 9e5ce83 commit 9a9eaa4455f9b146981252d7b03e45db3adf34ce @madskristensen committed on GitHub 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 9a9eaa4

Please sign in to comment.