UNPKG

@opentiny/tiny-toolkit-docs

Version:

这里对你的套件进行简单描述, 比如适用哪些场景,使用了什么技术, 有什么特点

9 lines (8 loc) 292 B
// 这是一个特殊的变体。 当用户需要使用缀时,传入前缀,返回一个变体函数 export default prefix => matcher => { if (!matcher.startsWith(prefix)) return 'nomatch'; return { matcher: matcher.slice(prefix.length), selector: s => `${s}`, }; };