// Detect It Easy: detection rule file
// Author: BJNFNE <bjnfne@web.de>

// https://icalendar.org/
meta("format", "iCalendar (.ICS)");

function detect() {
    if (Binary.compare("42 45 47 49 4E 3A 56 43 41 4C 45 4E 44 41 52")) {
        var utf = Binary.getString(33, 5).trim();

        if (/^[A-Z0-9/-]{5}$/.test(utf)) {
            if (X.isVerbose()) sOptions = utf;
            bDetected = true;
        }
    }

    return result();
}