From 97fd0a17aafcf342757829798aa5c8c1b8d562ca Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 11 Jan 2017 22:50:15 +0000 Subject: source/sox: relax comment NAME restriction This is needed for the "ALBUM ARTIST" tag which has a space in the name. This is looser than , but probably good enough for practical purposes. --- lib/dtas/source/sox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/dtas/source/sox.rb b/lib/dtas/source/sox.rb index 9f3cd9b..7f55c5d 100644 --- a/lib/dtas/source/sox.rb +++ b/lib/dtas/source/sox.rb @@ -56,7 +56,7 @@ class DTAS::Source::Sox # :nodoc: # take advantage of the VM-wide dedupe in MRI (rb_fstring): key = nil $1.split(/\n/n).each do |line| - if line.sub!(/^([a-z]\w*)=/i, '') + if line.sub!(/^([^=]+)=/ni, '') key = $1.upcase key = eval "#{key.inspect}.freeze" end -- cgit v1.2.3-24-ge0c7