Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chain-able-deps / dist / regexp / matchNative.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var functionToString_1 = require("../native/functionToString");
var objectHasOwnProperty_1 = require("../native/objectHasOwnProperty");
exports.default = RegExp("^" + functionToString_1.default
    // Take an example native function source for comparison
    .call(objectHasOwnProperty_1.default)
    // Strip regex characters so we can use it for regex
    .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
    // Remove hasOwnProperty from the template to make it generic
    .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + "$");
//# sourceMappingURL=matchNative.js.map