From e76e63909c2a2f124d24dc4d7cb3d3c043daf062 Mon Sep 17 00:00:00 2001 From: Sebastian Ludwig Date: Fri, 27 Nov 2015 15:55:35 +0100 Subject: [PATCH] Shortened check for wrapping accents in StringsFile.read. --- lib/twine/stringsfile.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/twine/stringsfile.rb b/lib/twine/stringsfile.rb index 0ba1897..863d8d0 100644 --- a/lib/twine/stringsfile.rb +++ b/lib/twine/stringsfile.rb @@ -148,9 +148,8 @@ module Twine if match key = match[1].strip value = match[2].strip - if value[0,1] == '`' && value[-1,1] == '`' - value = value[1..-2] - end + + value = value[1..-2] if value[0] == '`' && value[-1] == '`' case key when 'comment'