Skip to content

Commit

Permalink
fixed: stacking regex
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCooper committed Feb 3, 2018
1 parent 0a789f7 commit 0f9b806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EmberAPI/clsAPIFileUtils.vb
Expand Up @@ -656,7 +656,7 @@ Namespace FileUtils
'Don't do anything if DisableMultiPartMedia is True or strPath is String.Empty
If AdvancedSettings.GetBooleanSetting("DisableMultiPartMedia", False) OrElse String.IsNullOrEmpty(strPath) Then Return strPath

Dim FilePattern As String = AdvancedSettings.GetSetting("FileStacking", "(.*?)([ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck])[ _.-]*[0-9]+)(.*?)(\.[^.]+)$")
Dim FilePattern As String = AdvancedSettings.GetSetting("FileStacking", "(.*?)([ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck])[0-9]+)(.*?)(\.[^.]+)$")
Dim FolderPattern As String = AdvancedSettings.GetSetting("FolderStacking", "((cd|dvd|dis[ck])[0-9]+)$")

Dim FileStacking = Regex.Match(strPath, FilePattern, RegexOptions.IgnoreCase)
Expand Down

0 comments on commit 0f9b806

Please sign in to comment.