@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
16 lines (15 loc) • 460 B
TypeScript
/**
* Shared URL validation utilities
*/
/**
* Validates if a string is a valid URL
* @param url - The URL to validate
* @returns true if the URL is valid, false otherwise
*/
export declare function isValidUrl(url: string): boolean;
/**
* Checks if text is a pure URL (single URL without other text)
* @param text - The text to check
* @returns true if text is a pure URL, false otherwise
*/
export declare function isPureUrl(text: string): boolean;