Vinyl
    Preparing search index...
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    parts: UserAgentPart[]

    Methods

    • Given lowercase tokens of only alpha characters, returns the mapped token part if all tokens are contained in the section.

      Parameters

      • ...tokens: readonly string[]

      Returns null | UaSystemInfo

    • Given an expression of logical operators, returns the name and version of the part that matches the expression.

      Logical operators currently supported: | for OR and & for AND. Operands between operators will be tokenized via tokenizeWords.

      Parameters

      • expr: string

        The expression of tokens and operators. Example: 'windows phone|windows&mobile' will match when one part has both 'windows' and 'phone' or there are two parts, one with 'windows' and another part with 'mobile' (Case insensitive)

      Returns null | UaSystemInfo