use register for degradeBy / undegradeBy
This commit is contained in:
parent
4340f024d3
commit
09b15a07c6
3 changed files with 11 additions and 22 deletions
|
|
@ -178,11 +178,6 @@ export const h = (string) => {
|
|||
return patternifyAST(ast);
|
||||
};
|
||||
|
||||
// shorthand for mini
|
||||
Pattern.prototype.define('mini', mini, { composable: true });
|
||||
Pattern.prototype.define('m', mini, { composable: true });
|
||||
Pattern.prototype.define('h', h, { composable: true });
|
||||
|
||||
export function minify(thing) {
|
||||
if (typeof thing === 'string') {
|
||||
return mini(thing);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue