whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Don't drop last char of id
Date Fri, 04 Jan 2019 18:14:09 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new a2a8684  Don't drop last char of id
a2a8684 is described below

commit a2a86845a48a700bac989bfdb3f9a9ff59ea99fa
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Jan 4 18:13:18 2019 +0000

    Don't drop last char of id
---
 www/secretary/workbench/models/message.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/secretary/workbench/models/message.rb b/www/secretary/workbench/models/message.rb
index 9ce90bc..b94b2ed 100644
--- a/www/secretary/workbench/models/message.rb
+++ b/www/secretary/workbench/models/message.rb
@@ -27,7 +27,7 @@ class Message
   # find an attachment
   #
   def find(name)
-    name = name[1...-2] if name =~ /^<.*>$/ # drop enclosing <> if present
+    name = name[1..-2] if name =~ /^<.*>$/ # drop enclosing <> if present
     name = name[2..-1] if name.start_with? './'
     name = name.dup.force_encoding('utf-8')
 


Mime
View raw message