AdaCAD Library Documentation - v1.1.4
    Preparing search index...

    Type Alias StringParam

    StringParam: OperationParam & { error: string; regex: RegExp }

    An extension of Param that handles extra requirements for strings as inputs

    strings must come with a regex used to validate their structure

    • test and make regex using RegEx101 website
    • do not use global (g) flag, as it creates unpredictable results in test functions used to validate inputs

    the error message to show the user if the string is invalid