swc/crates/swc_ecma_minifier/tests/full/next-30498/1/output.js
Donny/강동윤 df635c9e6d
fix(es/minifier): Fix minifier (#2711)
swc_ecma_minifier:
 - Respect `inline_prevented`.
 - Mark the LHS of an assignment pattern property as a pattern. (https://github.com/vercel/next.js/issues/30498)
2021-11-10 20:56:50 +09:00

2 lines
309 B
JavaScript

class a extends BaseSchema{matches(b,c){let d=!1,e,f;return c&&("object"==typeof c?{excludeEmptyString:d=!1,message:e,name:f}=c:e=c),this.test({name:f||"matches",message:e||string.matches,params:{regex:b},test:a=>isAbsent(a)||""===a&&d|| -1!==a.search(b)})}}(function(){return new a()}).prototype=a.prototype