is_valid_version

Function is_valid_version 

Source
pub fn is_valid_version(version: &str) -> bool
Expand description

Check if a string is a valid feed version identifier

Validates whether a version string matches one of the known feed format versions supported by feedparser.

§Arguments

  • version - Version string to validate

§Returns

true if version is valid, false otherwise

§Examples

use feedparser_rs::compat::is_valid_version;

assert!(is_valid_version("rss20"));
assert!(is_valid_version("atom10"));
assert!(is_valid_version("json11"));
assert!(!is_valid_version("invalid"));
assert!(!is_valid_version(""));