From 6aac51b63344b05dea34317e0d1b23bb64f0a22d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 15 Sep 2015 01:27:14 +0200 Subject: [PATCH] Fixed typos. --- app/controllers/import_otrs_controller.rb | 2 +- lib/core_ext/string.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/import_otrs_controller.rb b/app/controllers/import_otrs_controller.rb index d163c900c..197073a75 100644 --- a/app/controllers/import_otrs_controller.rb +++ b/app/controllers/import_otrs_controller.rb @@ -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 ) diff --git a/lib/core_ext/string.rb b/lib/core_ext/string.rb index 5b3a37e47..049e88e6c 100644 --- a/lib/core_ext/string.rb +++ b/lib/core_ext/string.rb @@ -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 & < > " @@ -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!