Node-Red configuration
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.

regexp-get-flags.js 501B

12345678910111213
  1. 'use strict';
  2. var call = require('../internals/function-call');
  3. var hasOwn = require('../internals/has-own-property');
  4. var isPrototypeOf = require('../internals/object-is-prototype-of');
  5. var regExpFlags = require('../internals/regexp-flags');
  6. var RegExpPrototype = RegExp.prototype;
  7. module.exports = function (R) {
  8. var flags = R.flags;
  9. return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)
  10. ? call(regExpFlags, R) : flags;
  11. };