项目原始demo,不改动
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

26 lines
547 B

  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = function () {
  4. return {
  5. visitor: {
  6. NumericLiteral: function NumericLiteral(_ref) {
  7. var node = _ref.node;
  8. if (node.extra && /^0[ob]/i.test(node.extra.raw)) {
  9. node.extra = undefined;
  10. }
  11. },
  12. StringLiteral: function StringLiteral(_ref2) {
  13. var node = _ref2.node;
  14. if (node.extra && /\\[u]/gi.test(node.extra.raw)) {
  15. node.extra = undefined;
  16. }
  17. }
  18. }
  19. };
  20. };
  21. module.exports = exports["default"];