From 125eb5903650658a0e370e474431665ebe8ef90b Mon Sep 17 00:00:00 2001 From: Sebastian Celis Date: Wed, 15 Feb 2012 11:16:36 -0600 Subject: [PATCH] Support empty translations. This seems strange, but I can imagine weird scenarios where a key should translate to nothing in certain languages. So, let's support this for now. --- lib/twine/stringsfile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/twine/stringsfile.rb b/lib/twine/stringsfile.rb index 82d534e..47ff1be 100644 --- a/lib/twine/stringsfile.rb +++ b/lib/twine/stringsfile.rb @@ -94,7 +94,7 @@ module Twine parsed = true end else - match = /^([^=]+)=(.+)$/.match(line) + match = /^([^=]+)=(.*)$/.match(line) if match key = match[1].strip value = match[2].strip