// npm has a kinda fucked version of semver? // https://github.com/npm/node-semver use nom::{ branch::alt, bytes::complete::take_while1, character::is_alphanumeric, }; pub fn parse_semver(wtf: &str) {} fn is_part(c: u8) -> bool { c == b'-' || is_alphanumeric(c) } // fn part() { // alt((nr, take_while1(is_part))) // }