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