Skip to content

Commit

Permalink
implode
Browse files Browse the repository at this point in the history
Signed-off-by: IThundxr <[email protected]>
  • Loading branch information
IThundxr committed Aug 28, 2023
1 parent 15d3148 commit 715ba2a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/logIssueAnalyzers/createVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ export const createVersionAnalyzer: Analyzer = async (log) => {
const matchesCreate = log.mods
? log.mods.get('create') == '0.5.1.b'
: log.content.match(/create-(.)+-0\.5\.1\.b/);
const matchesSNR = log.mods
? log.mods.get('railways') == '1.5.0'
: log.content.match(/Steam_Rails-(.)+-1\.5\.0/);
if (!log.mods) return null;
const matchesSNR = log.mods.get('railways')?.includes('1.5.0');
if (matchesCreate && matchesSNR) {
return {
name: 'Incompatible with Create 0.5.1b',
value: "Create: Steam 'n' Rails is currently incompatible with `Create 0.5.1b`. Upgrade to `Create 0.5.1c` or downgrade Steam 'n' Rails.",
value: "Create: Steam 'n' Rails `1.5.0` is incompatible with `Create 0.5.1b`. Upgrade to `Create 0.5.1c` or downgrade Steam 'n' Rails.",
};
}
return null;
Expand Down

0 comments on commit 715ba2a

Please sign in to comment.