Commit 38188da6 authored by Simpy's avatar Simpy 🐹

dont really need a custom function for it tho

parent ec4edf80
......@@ -131,11 +131,6 @@ local function Abbrev(name)
end
E.TagFunctions.Abbrev = Abbrev
local function LastName(name)
return strmatch(name, '([%S]+)$')
end
E.TagFunctions.LastName = LastName
local Harmony = {
[0] = {1, 1, 1},
[1] = {.57, .63, .35, 1},
......@@ -275,7 +270,7 @@ ElvUF.Tags.Methods['name:last'] = function(unit)
local name = UnitName(unit)
if name and strfind(name, '%s') then
name = LastName(name)
name = strmatch(name, '([%S]+)$')
end
return name ~= nil and name or ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment