Function parseStringQuartzExpression

  • Parses given string expression.

    Example

    parseStringQuartzExpression("1 1 1 1 1"); // ["*", "1", "1", "1", "1", "1", "*"]
    parseStringQuartzExpression("1 1 1 1 1 1989"); // ["*", "1", "1", "1", "1", "1", "1989"]
    parseStringQuartzExpression("1 1 1 1 1 1"); // ["1", "1", "1", "1", "1", "1", "*"]
    parseStringQuartzExpression("1 1 1 1 1 1 1"); // ["1", "1", "1", "1", "1", "1", "1"]
    parseStringQuartzExpression(" 1 1 1 1 1 1 1 "); // ["1", "1", "1", "1", "1", "1", "1"]
    parseStringQuartzExpression("1 1 1 1 1 1 1 1"); // undefined
    parseStringQuartzExpression("1 1 1 1"); // undefined

    Returns

    An array of 7 elements or undefined if invalid.

    Parameters

    • source: string

      string to be parsed.

    Returns undefined | readonly [string, string, string, string, string, string, string]