Commit 35bc9c11 authored by Michael Rose's avatar Michael Rose

metadata parser: strip whitespace

parent 2783494e
......@@ -41,7 +41,7 @@ module Scryer
m.follows = self.parse_num(part)
true
when part.match(/Rated: /)
m.rated = part.split(': ')[1].gsub('+', 'PLUS').gsub('Fiction ', '')
m.rated = part.split(': ')[1].gsub('+', 'PLUS').gsub('Fiction ', '').strip
true
when part.match(/Reviews: /)
m.reviews = self.parse_num(part)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment