diff --git a/src/ImageProcessor/Extensions/StringExtensions.cs b/src/ImageProcessor/Extensions/StringExtensions.cs index 9377ea2ed..62bb01e70 100644 --- a/src/ImageProcessor/Extensions/StringExtensions.cs +++ b/src/ImageProcessor/Extensions/StringExtensions.cs @@ -123,7 +123,7 @@ namespace ImageProcessor.Extensions throw new ArgumentNullException("expression"); } - Regex regex = new Regex(@"[\d+]+(?=[,|])|[\d+]+(?![,|])", RegexOptions.Compiled); + Regex regex = new Regex(@"[\d+]+(?=[,-])|[\d+]+(?![,-])", RegexOptions.Compiled); MatchCollection matchCollection = regex.Matches(expression); @@ -152,7 +152,7 @@ namespace ImageProcessor.Extensions throw new ArgumentNullException("expression"); } - Regex regex = new Regex(@"[\d+\.]+(?=[,|])|[\d+\.]+(?![,|])", RegexOptions.Compiled); + Regex regex = new Regex(@"[\d+\.]+(?=[,-])|[\d+\.]+(?![,-])", RegexOptions.Compiled); MatchCollection matchCollection = regex.Matches(expression);