@wordpress/url
Version:
WordPress URL utilities.
15 lines • 415 B
TypeScript
/**
* Checks for invalid characters within the provided path.
*
* @param path The URL path.
*
* @example
* ```js
* const isValid = isValidPath( 'test/path/' ); // true
* const isNotValid = isValidPath( '/invalid?test/path/' ); // false
* ```
*
* @return True if the argument contains a valid path
*/
export declare function isValidPath(path: string): boolean;
//# sourceMappingURL=is-valid-path.d.ts.map