tahamajs's picture
download
raw
717 Bytes
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _core = require("@babel/core");
var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
return {
name: "transform-sticky-regex",
visitor: {
RegExpLiteral(path) {
const {
node
} = path;
if (!node.flags.includes("y")) return;
path.replaceWith(_core.types.newExpression(_core.types.identifier("RegExp"), [_core.types.stringLiteral(node.pattern), _core.types.stringLiteral(node.flags)]));
}
}
};
});
//# sourceMappingURL=index.js.map

Xet Storage Details

Size:
717 Bytes
·
Xet hash:
b496dcf9215e9c922a2db6ba3ba7f41f7556636556a672719e5b3f56453fc1e0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.