summaryrefslogtreecommitdiff
path: root/sample/from.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/from.rb')
-rw-r--r--sample/from.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/sample/from.rb b/sample/from.rb
index 93b6c4bade..bed3433f1e 100644
--- a/sample/from.rb
+++ b/sample/from.rb
@@ -17,6 +17,7 @@ class String
len += 1
me = self[0, len].ljust(len)
if me =~ /.$/ and $&.size == 2
+ me[-2..-1] = ' '
me[-2, 2] = ' '
end
me.chop!