You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
547 B
26 lines
547 B
"use strict"; |
|
|
|
exports.__esModule = true; |
|
|
|
exports.default = function () { |
|
return { |
|
visitor: { |
|
NumericLiteral: function NumericLiteral(_ref) { |
|
var node = _ref.node; |
|
|
|
if (node.extra && /^0[ob]/i.test(node.extra.raw)) { |
|
node.extra = undefined; |
|
} |
|
}, |
|
StringLiteral: function StringLiteral(_ref2) { |
|
var node = _ref2.node; |
|
|
|
if (node.extra && /\\[u]/gi.test(node.extra.raw)) { |
|
node.extra = undefined; |
|
} |
|
} |
|
} |
|
}; |
|
}; |
|
|
|
module.exports = exports["default"]; |