m.censor: work around a bunder bug (#2752)
This commit is contained in:
parent
53bedd1102
commit
c8df665bcb
3 changed files with 5 additions and 3 deletions
|
|
@ -24,7 +24,8 @@
|
|||
// ```
|
||||
|
||||
var hasOwn = require("./hasOwn")
|
||||
var magic = /^(?:key|oninit|oncreate|onbeforeupdate|onupdate|onbeforeremove|onremove)$/
|
||||
// Words in RegExp literals are sometimes mangled incorrectly by the internal bundler, so use RegExp().
|
||||
var magic = new RegExp("^(?:key|oninit|oncreate|onbeforeupdate|onupdate|onbeforeremove|onremove)$")
|
||||
|
||||
module.exports = function(attrs, extras) {
|
||||
var result = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue