source: trip-planner-front/node_modules/core-js/internals/regexp-flags.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 485 bytes
Line 
1'use strict';
2var anObject = require('../internals/an-object');
3
4// `RegExp.prototype.flags` getter implementation
5// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
6module.exports = function () {
7 var that = anObject(this);
8 var result = '';
9 if (that.global) result += 'g';
10 if (that.ignoreCase) result += 'i';
11 if (that.multiline) result += 'm';
12 if (that.dotAll) result += 's';
13 if (that.unicode) result += 'u';
14 if (that.sticky) result += 'y';
15 return result;
16};
Note: See TracBrowser for help on using the repository browser.