diff --git a/src/issues/GAS/unsignedComparison.ts b/src/issues/GAS/unsignedComparison.ts index 6884d4f..2c2d5be 100644 --- a/src/issues/GAS/unsignedComparison.ts +++ b/src/issues/GAS/unsignedComparison.ts @@ -4,7 +4,7 @@ const issue: RegexIssue = { regexOrAST: 'Regex', type: IssueTypes.GAS, title: 'Use != 0 instead of > 0 for unsigned integer comparison', - regex: /([a-z,A-Z,0-9]*>.?0|0.?<.?[a-z,A-Z,0-9]*)/g, + regex: /(?!pragma\s*solidity)[a-z,A-Z,0-9]*>.?0|0.?<.?[a-z,A-Z,0-9]*/g, }; export default issue;