# File ../../auditor/lib/kasp_auditor/preparser.rb, line 107 def prepare(domain) # Check if the name contains any escape characters ("\") - If not, then just reverse elements. # If it does contain escape characters, then parse it as a proper name. labels = domain.split(".") if (domain.index("\\")) name = Name.create(domain) labels = name.labels end # Simply reverse each label return labels.reverse!.join(LABEL_SEPARATOR).downcase end