Commit a996ca97cf3bd2d9f965457dd683b1b3d4923257

Authored by Nathan Broadbent
1 parent 5866b172
Exists in master and in 1 other branch production

Fixed string splitting method

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/errs_helper.rb
@@ -10,7 +10,7 @@ module ErrsHelper @@ -10,7 +10,7 @@ module ErrsHelper
10 def trucated_err_message(problem) 10 def trucated_err_message(problem)
11 msg = truncate(problem.message, :length => 300) 11 msg = truncate(problem.message, :length => 300)
12 # Insert invisible unicode characters so that firefox can emulate 'word-wrap: break-word' CSS 12 # Insert invisible unicode characters so that firefox can emulate 'word-wrap: break-word' CSS
13 - msg.scan(/.{5}/).join("​").html_safe 13 + msg.scan(/.{1,5}/).join("​").html_safe
14 end 14 end
15 end 15 end
16 16