Skip to content

Commit

Permalink
allow more valid range names
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyagusev committed Feb 10, 2022
1 parent a222385 commit 6118bfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BookFx/Epplus/Constraint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ internal static class Constraint

internal const int MaxScale = 400;

internal static readonly Regex SheetNameRegex = new Regex(@"^[^:\\/?*[\]]{1,31}$");
internal static readonly Regex SheetNameRegex = new(@"^[^:\\/?*[\]]{1,31}$");

internal static readonly Regex RangeNameRegex = new Regex(@"(?i)^[a-z_]\w*$");
internal static readonly Regex RangeNameRegex = new(@"(?i)^(?=\D)\w+$");

internal static readonly Regex A1RangeNameRegex = new Regex(@"(?i)^[a-z]{1,3}\d{1,7}$");
internal static readonly Regex A1RangeNameRegex = new(@"(?i)^[a-z]{1,3}\d{1,7}$");

internal static readonly Regex R1C1RangeNameRegex = new Regex(@"(?i)^(?:(?:r|c)(?:[-\[\]\d]*)){1,2}$");
internal static readonly Regex R1C1RangeNameRegex = new(@"(?i)^(?:(?:r|c)(?:[-\[\]\d]*)){1,2}$");
}
}

0 comments on commit 6118bfc

Please sign in to comment.