Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/easyts/path/mod.ts>match

js library written with ts, use select and chan like golang in js.
Latest
function match
import { match } from "https://deno.land/x/easyts@0.1.3/path/mod.ts";

reports whether name matches the shell pattern.

Examples

Example 1

consoloe.log(match("abc", "abc")) // true
consoloe.log(match("a*", "abc")) // true
consoloe.log(match("a*\/b", "a/c/b")) // false

Parameters

pattern: string
name: string