Skip to content

Commit

Permalink
More liberal regex for matching ppd option values
Browse files Browse the repository at this point in the history
Allows matching other valid non-whitespace characters not included in \w character class, e.g. "-"
  • Loading branch information
ih84ds committed Mar 7, 2017
1 parent cd4576f commit 2609a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/printer/cups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def self.ppd_options(destination)
kv = line.split(':')
key = kv[0].split('/', 2)[0]

selected_value = /\*(\w+)/.match(kv[1]).captures[0]
selected_value = /\*(\S+)/.match(kv[1]).captures[0]

hash[key] = selected_value
hash
Expand Down

0 comments on commit 2609a9f

Please sign in to comment.