Skip to content

Commit

Permalink
regexp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Narazaka committed Jul 27, 2017
1 parent 48c821f commit e0bd69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seedtable/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public bool Contains(string fileName, string sheetName, OnOperation onOperation)

class SheetNameWithSubdivide {
public static SheetNameWithSubdivide FromMixed(string mixedName) {
var result = Regex.Match(mixedName, @"^(?:(\d+):)?(?:([^:]+)/)?([^:/]+)(?::(\d+))?(@(?:from|to))?$");
var result = Regex.Match(mixedName, @"^(?:(\d+):)?(?:([^:@]+)/)?([^:/@]+)(?::(\d+))?(?:@(from|to))?$");
if (!result.Success) throw new Exception($"{mixedName} is wrong sheet name and subdivide rule definition");
var cutPrefixStr = result.Groups[1].Value;
var fileName = result.Groups[2].Value;
Expand Down

0 comments on commit e0bd69c

Please sign in to comment.