Fixed typos.
This commit is contained in:
parent
672b1ab40c
commit
d1278d44c2
2 changed files with 3 additions and 3 deletions
|
@ -5,10 +5,10 @@ class Widget
|
|||
banner = """
|
||||
|
|
||||
| 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('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() // current settings
|
||||
|
|
|
@ -81,7 +81,7 @@ class String
|
|||
def html2text(string_only = false, strict = false)
|
||||
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
|
||||
# note: string.encode!('UTF-8', 'UTF-8', :invalid => :replace, :replace => '?') was not detecting invalid chars
|
||||
if !string.valid_encoding?
|
||||
|
|
Loading…
Reference in a new issue