def m_len(target):
 from evennia.utils.ansi import ANSI_PARSER
 if (inherits_from(target, basestring) and ('|lt' in target)):
  return len(ANSI_PARSER.strip_mxp(target))
 return len(target)

def m_len ( target ) : from evennia . utils . ansi import ANSI_PARSER if ( inherits_from ( target , basestring ) and ( '|lt' in target ) ) : return len ( ANSI_PARSER . strip_mxp ( target ) ) return len ( target )
provides length checking for strings with mxp patterns .