Skip to content

Commit

Permalink
Remove rubocop todo (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannnylo authored Oct 12, 2021
1 parent 3ca0f1a commit c670b82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
inherit_from: .rubocop_todo.yml

AllCops:
NewCops: enable

Layout/LineLength:
Max: 150
Expand Down
12 changes: 0 additions & 12 deletions .rubocop_todo.yml

This file was deleted.

6 changes: 3 additions & 3 deletions lib/rtesseract/box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def parse(content)
def parse_line(line)
return unless line.match?(/oc(rx|r)_word/)

word = line.match(/(?<=>)(.*?)(?=<)/).to_s
word = line.to_s.scan(/>(.*)</).flatten.first.to_s

return if word.strip == ''

Expand All @@ -39,11 +39,11 @@ def word_info(word, positions, confidence)
end

def parse_position(line)
line.match(/(?<=title)(.*?)(?=;)/).to_s.split(' ')
line.match(/(?<=title)(.*?)(?=;)/).to_s.split
end

def parse_confidence(line)
line.match(/(?<=;)(.*?)(?=')/).to_s.split(' ')
line.match(/(?<=;)(.*?)(?=')/).to_s.split
end
end
end
Expand Down

0 comments on commit c670b82

Please sign in to comment.