lib/junoser/display/config_store.rb in junoser-0.3.9 vs lib/junoser/display/config_store.rb in junoser-0.3.10

- old
+ new

@@ -76,19 +76,19 @@ end def match(str) each do |statement, store| # NOTE: return the first object - return [statement, store] if str =~ /^#{Regexp.escape(statement)}(\b|$)/ + return [statement, store] if str =~ /^#{Regexp.escape(statement)}((?= )|$)/ end [] end def inverse_match(str) each do |statement, store| # NOTE: return the first object - return [statement, store] if statement =~ /^#{str}\b/ + return [statement, store] if statement =~ /^#{str}(?= )/ end [] end end