@azure/static-web-apps-cli
Version:
Azure Static Web Apps CLI
23 lines • 913 B
TypeScript
/**
* Turn expression into a valid regexp
*
* @param glob A string containing a valid wildcard expression
* @returns a string containing a valid RegExp
*/
export declare function globToRegExp(glob: string | undefined): string;
/**
* Check if the route rule contains a valid wildcard expression
*
* @param glob A string containing a valid wildcard expression
* @returns true if the glob expression is valid, false otherwise
* @see https://docs.microsoft.com/azure/static-web-apps/configuration#wildcards
*/
export declare function isValidGlobExpression(glob: string | undefined): boolean;
/**
* Checks if a string expression has balanced curly brackets
*
* @param str the string expression to be checked
* @returns true if the string expression has balanced curly brackets, false otherwise
*/
export declare function isBalancedCurlyBrackets(str: string): boolean;
//# sourceMappingURL=glob.d.ts.map