working
This commit is contained in:
parent
f7f3aa7668
commit
6221099af8
9 changed files with 94 additions and 11 deletions
|
|
@ -147,6 +147,7 @@ export function repl({
|
|||
|
||||
// set pattern methods that use this repl via closure
|
||||
const injectPatternMethods = () => {
|
||||
|
||||
Pattern.prototype.p = function (id) {
|
||||
if (typeof id === 'string' && (id.startsWith('_') || id.endsWith('_'))) {
|
||||
// allows muting a pattern x with x_ or _x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue