main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
562 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var anObject = require('../internals/an-object');
|
---|
3 |
|
---|
4 | // `RegExp.prototype.flags` getter implementation
|
---|
5 | // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
---|
6 | module.exports = function () {
|
---|
7 | var that = anObject(this);
|
---|
8 | var result = '';
|
---|
9 | if (that.hasIndices) result += 'd';
|
---|
10 | if (that.global) result += 'g';
|
---|
11 | if (that.ignoreCase) result += 'i';
|
---|
12 | if (that.multiline) result += 'm';
|
---|
13 | if (that.dotAll) result += 's';
|
---|
14 | if (that.unicode) result += 'u';
|
---|
15 | if (that.unicodeSets) result += 'v';
|
---|
16 | if (that.sticky) result += 'y';
|
---|
17 | return result;
|
---|
18 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.