Skip to content

Commit 4eb46cc

Browse files
committed
fix: broken regexp
1 parent ee2cece commit 4eb46cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codeclimate_diff/codeclimate_wrapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def run_codeclimate(filename = "")
1818
--platform #{docker_platform} \
1919
codeclimate/codeclimate analyze -f json #{filename}`
2020

21-
output.gsub(/.*?(?=\[{)/im, "") # remove everything before the first json object (ie WARNINGS)
21+
output.gsub(/.*?(?=^\[{)/im, "") # remove everything before the first json object (ie WARNINGS)
2222
end
2323

2424
def pull_latest_image

0 commit comments

Comments
 (0)