    * @return {string} Language code from locale
   ###
   getLangcode = (locale) ->
-    matched = locale.match(/^(\w*)-?(\w*)-?(\w*)/i)
+    _matched = locale.match(/^(\w*)-?(\w*)-?(\w*)/i)
     # In case of 3 and more matched parts assume that we're dealing with language, wich exists
     # in few forms (like Latin and Cyrillic Serbian (`sr-Latn-CS` and `sr-Cyrl-CS`)
     # For such languages we should output few first parts (`sr-Latn` and `sr-Cyrl`),
     # for other — only first part
-    if matched[3] then matched[1] + '-' + matched[2] else matched[1]
+    if _matched[3] then _matched[1] + '-' + _matched[2] else _matched[1]
 
   # Load and invoke content of l10n files
   # @note In native `xgettext` you can set as many domains as you wish per locale. Usually domains

           * @example <a href="{{ localeDir() }}/blog/">blog link</a>
          ###
          env.addGlobal 'localeDir', (locale = currentLocale) ->
            localeDir = getLocaleDir(locale)
            if localeDir then '/' + localeDir else ''

          ###*
          * Load string from current locale

   * @return {string} Renamed path
  ###
  humanReadableUrl = (pagepath) ->
    _exclude  = taskConfig.humanReadableUrls.exclude

    _ext      = path.extname(pagepath)
    _basename = path.basename(pagepath, _ext)

    if !_exclude.test(_basename)
      pagepath = pagepath.replace(_basename + _ext, _basename + '/index' + _ext)
    pagepath

  # Output or not locale's dir name based on whether it's base locale or not.
