Skip to content

Commit

Permalink
Merge pull request #6742 from BinuDR/patch-6
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR authored Dec 6, 2023
2 parents abc3c97 + 88c9757 commit 2f25212
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions register.lic
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ class Register
end

def find_unlabeled
results = search('^\s{4}.*[A-z]+$')
results = search('^\s*.*([A-z]+|\|\s+\|)$')
pages = Array.new
results.each do |line|
if line =~ /^\s+(\d+)/
if line =~ /^\|?\s+(\d+)/
pages.push(Regexp.last_match(1).to_i)
end
end
Expand Down Expand Up @@ -185,6 +185,7 @@ class Register
loop do
line = get
contents.push(line) if line =~ /\W?#{query}\W?/i
break if line.match('Currently Stored: ')
break if line.match('Maximum: ')
end
return contents
Expand Down

0 comments on commit 2f25212

Please sign in to comment.