 
   show: (type, text) ->
     return false if $.isEmptyString text
-    # Add dot after last word (if word has minimum 3 characters)
-    text += '.' if /[\wа-яёА-ЯЁ]{3,}$/.test text
-    jFlash = $ "<div class=\"flash #{type}\" style=\"display: none;\">#{text}</div>"
+    jFlash = $ "<div class=\"flash #{type}\" style=\"display: none;\">#{@_prepareText text}</div>"
     jFlash.appendTo(@jContainer).slideDown @settings.slideTime
     @_setTimeout jFlash
     jFlash

    @settings = $.extend {}, @constructor.defaults.options, @constructor.defaults.locales[_locale], options
    @jContainer.data @constructor.defaults.constants.widgetDataKey, @
    _self = @
    @jContainer.delegate '.flash:not(:animated)', 'click', ->
      _self._hide $ @ if _self.settings.hideOnClick
      false
    @jFlashes().each -> _self._setTimeout $ @
    # binding hook ajaxError handler
    @jContainer.ajaxError =>
      @ajaxError arguments if @settings.showAjaxErrors

    _jFlashes = @jContainer.find '.flash'
    if filterSelector then _jFlashes.filter filterSelector else _jFlashes

  _prepareText: (text) ->
    text = strTrim text
    # Add dot after last word (if word has minimum 3 characters)
    text += '.' if @settings.forceAddDotsAfterLastWord and @settings.regExpLastWordWithoutDot.test text
    text = text.replace @settings.regExpLastWordWithDot, '$1' if @settings.forceRemoveDotsAfterLastWord
    text

  _hide: (jFlash) ->
    clearTimeout jFlash.data 'timeout_id'
    _self = @
    jFlash.slideUp @settings.slideTime, -> $(@).remove() if _self.settings.removeOnHide

  _setTimeout: (jFlash) ->
    timeoutId = false
