mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
df635c9e6d
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)
2 lines
309 B
JavaScript
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
|