Skip to content

Commit

Permalink
perf: simplify isRoarrLine check
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Dec 4, 2021
1 parent 5cb2b93 commit 2ae9f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/isRoarrLine.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const isRoarrLine = (text: string): boolean => {
return text.includes('"message"') && text.includes('"sequence"');
return text.startsWith('{"context":{');
};

0 comments on commit 2ae9f4e

Please sign in to comment.