Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function tryParseComparator
import { tryParseComparator } from "https://deno.land/std@0.199.0/semver/try_parse_comparator.ts";

Parses a comparator string into a valid SemVerComparator or returns undefined if not valid.

Parameters

comparator: string

Returns

SemVerComparator | undefined

A valid SemVerComparator or undefined