Ignore:
Timestamp:
Nov 12, 2014, 8:27:48 PM (10 years ago)
Author:
maron
Message:

Oprava chyby u addonu 1.12.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/files/1.12.1/CzWoW/CzWoW.lua

    r755 r814  
    2626
    2727local trim=function(text)
    28         if not text then return nil; end
    29         return gsub(gsub(gsub(string.lower(text), "%s+", " "), "%s+$", ""), "^%s+", "");
     28        if not text then
     29    return nil;
     30  end
     31  text = string.lower(text);
     32  text = gsub(text, "%s+", " ");
     33        text = gsub(text, "^%s+", "");
     34        text = gsub(text, "%s+$", "");
     35        text = gsub(text, " ", "");
     36        return text;
    3037end
    3138
Note: See TracChangeset for help on using the changeset viewer.