Skip to content

A Javascript library that manages mach patterns for matching urls

License

Notifications You must be signed in to change notification settings

jc3213/matchpattern.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Usage

Download

Latest

HTML

<script src="https://jc3213.github.io/matchpattern.js/matchpattern.js"></script>

TamperMonkey

// @require https://jc3213.github.io/matchpattern.js/matchpattern.js

Syntax

let pA = MatchPattern(url);
let pB = MatchPattern(host);
  • url
    • string
    • https://example.com/pathname
  • host
    • string
    • example.com