UNPKG

antler

Version:
17 lines (13 loc) 273 B
import { RegexRule } from '../regex-rule'; import { Node } from '../types'; export class Path extends RegexRule { protected getName() { return 'Path'; } protected shouldRun() { return true; } protected getPart(node: Node) { return node.path; } }