Taken from
ShadowedUnitFrames/modules/auras.lua:
Code:
-- Blizzard bug, Enrage is an empty string.
cureType = auraType == "" and "Enrage" or auraType
...where
auraType is the 5th argument returned by
UnitAura. I personally haven't tested if this solution works in all cases, but, if it does, it's a lot better than tooltip scanning.