function autoDetectFormat(data) {
    for (var i = 0; i < formats.length; i++) {
        if (formats[i].test(data)) {
            return formats[i];
        }
    }
    return null;
}
Auto-detect BitmapFont parsing format based on data.
@private
@param {any} data - Data to detect format
@returns {any} Format or null