We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ef7547 commit 27c616cCopy full SHA for 27c616c
lib/prawn/text/formatted/parser.rb
@@ -238,8 +238,8 @@ def self.array_from_tokens(tokens)
238
/name='([^']*)'/.match(token)
239
fonts << matches[1] unless matches.nil?
240
241
- matches = /size=".*?(\d+(?:\.\d+)?).*?"/.match(token) ||
242
- /size='.*?(\d+(?:\.\d+)?).*?'/.match(token)
+ matches = /size="([^"]*)"/.match(token) ||
+ /size='([^']*)'/.match(token)
243
size = (Float(matches[1]) rescue nil) unless matches.nil?
244
sizes << size unless size.nil?
245
0 commit comments