Fixed typos.

This commit is contained in:
Martin Edenhofer 2015-09-15 01:27:14 +02:00
parent 0fca16a62d
commit 6aac51b633
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ class ImportOtrsController < ApplicationController
suffixes = ['/public.pl', '/otrs/public.pl']
suffixes.each {|suffix|
url = params[:url] + suffix + '?Action=ZammadMigrator'
# strip multible / in url
# strip multiple / in url
url.gsub!(%r{([^:])(/+/)}, '\\1/')
response = UserAgent.request( url )

View file

@ -141,7 +141,7 @@ class String
# strip all other tags
string.gsub!( /\<.+?\>/, '' )
# replace multible spaces with one
# replace multiple spaces with one
string.gsub!(/ /, ' ')
# strip all &amp; &lt; &gt; &quot;
@ -185,7 +185,7 @@ class String
# remove tailing empty spaces
string.gsub!(/\s+\n$/, "\n")
# remove multible empty lines
# remove multiple empty lines
string.gsub!(/\n\n\n/, "\n\n")
string.strip!