Fixed typos.

This commit is contained in:
Jens Pfeifer 2017-07-10 15:00:51 +00:00
parent 672b1ab40c
commit d1278d44c2
2 changed files with 3 additions and 3 deletions

View file

@ -5,10 +5,10 @@ class Widget
banner = """ banner = """
| |
| Welcome Zammad Developer! | Welcome Zammad Developer!
| You can enable debugging by the following examples (value is a regex): | You can enable debugging with the following examples (value is a regex):
| |
| App.Log.config('module', '(websocket|delay|interval)') // enable debugging for websocket, delay and interval class | App.Log.config('module', '(websocket|delay|interval)') // enable debugging for websocket, delay and interval class
| App.Log.config('content', 'send') // enable debugging for messages which contains the string 'send' | App.Log.config('content', 'send') // enable debugging for messages which contain the string 'send'
| App.Log.config('banner', false) // disable this banner | App.Log.config('banner', false) // disable this banner
| |
| App.Log.config() // current settings | App.Log.config() // current settings

View file

@ -81,7 +81,7 @@ class String
def html2text(string_only = false, strict = false) def html2text(string_only = false, strict = false)
string = "#{self}" # rubocop:disable Style/UnneededInterpolation string = "#{self}" # rubocop:disable Style/UnneededInterpolation
# in case of invalid encodeing, strip invalid chars # in case of invalid encoding, strip invalid chars
# see also test/fixtures/mail21.box # see also test/fixtures/mail21.box
# note: string.encode!('UTF-8', 'UTF-8', :invalid => :replace, :replace => '?') was not detecting invalid chars # note: string.encode!('UTF-8', 'UTF-8', :invalid => :replace, :replace => '?') was not detecting invalid chars
if !string.valid_encoding? if !string.valid_encoding?