Skip to content

Commit

Permalink
Fix mod dependency regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowTheAge committed Aug 29, 2020
1 parent d5c86ea commit fbcd359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YAFCparser/FactorioDataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ internal class ModList
internal class ModInfo : IDisposable
{
private static readonly string[] defaultDependencies = {"base"};
private static readonly Regex dependencyRegex = new Regex("^\\(?([?!]?)\\)?\\s*([\\w- ]+?)[\\s\\d.><=]*$");
private static readonly Regex dependencyRegex = new Regex("^\\(?([?!]?)\\)?\\s*([\\w- ]+?)(?:\\s*[><=]+\\s*[\\d.]*)?\\s*$");
public string name { get; set; }
public string version { get; set; }
public Version parsedVersion { get; set; }
Expand Down

0 comments on commit fbcd359

Please sign in to comment.