UNPKG

clarity-pattern-parser

Version:

Parsing Library for Typescript and Javascript.

7 lines (4 loc) 166 B
import { Regex } from "../../patterns/Regex"; const hex = new Regex("hex", "#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}"); hex.setTokens(["#000", "#FFF"]); export default hex;