Skip to content

Commit

Permalink
Update document.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin René Back authored Apr 6, 2021
1 parent 197c97a commit 61e31e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def snippets
if (p.status === 'declined') then
next;
end
if (p.quoteText.nil?) then
next;
end
quoteStart = self.text.index(p.quoteText)
if (p.quoteStart == quoteStart && p.quoteEnd == p.quoteStart + p.quoteText.length)
puts 'quote ok! ' + p.quoteStart.to_s + '->' + p.quoteEnd.to_s + ': ' + p.quoteText
Expand Down

0 comments on commit 61e31e1

Please sign in to comment.