From e0bd69c7813e343751f16dce1d8cff4d8511d625 Mon Sep 17 00:00:00 2001 From: Narazaka Date: Thu, 27 Jul 2017 14:27:56 +0900 Subject: [PATCH] regexp fix --- seedtable/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seedtable/Main.cs b/seedtable/Main.cs index c52a64e..8913e18 100644 --- a/seedtable/Main.cs +++ b/seedtable/Main.cs @@ -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;