Sha256: 60c7c86dd490115820d24e3959b065c926b03beefcdc36d279d8b046e95230c7

Contents?: true

Size: 694 Bytes

Versions: 26

Compression:

Stored size: 694 Bytes

Contents

'use strict';

var setFunctionName = require('set-function-name');

var $Object = Object;
var $TypeError = TypeError;

module.exports = setFunctionName(function flags() {
	if (this != null && this !== $Object(this)) {
		throw new $TypeError('RegExp.prototype.flags getter called on non-object');
	}
	var result = '';
	if (this.hasIndices) {
		result += 'd';
	}
	if (this.global) {
		result += 'g';
	}
	if (this.ignoreCase) {
		result += 'i';
	}
	if (this.multiline) {
		result += 'm';
	}
	if (this.dotAll) {
		result += 's';
	}
	if (this.unicode) {
		result += 'u';
	}
	if (this.unicodeSets) {
		result += 'v';
	}
	if (this.sticky) {
		result += 'y';
	}
	return result;
}, 'get flags', true);

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.32 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.31 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.30 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.29 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.28 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.27 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.26 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.25 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.24 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.23 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.22 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.21 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.20 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.19 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.18 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.17 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.16 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.14 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.13 node_modules/regexp.prototype.flags/implementation.js
immosquare-cleaner-0.1.12 node_modules/regexp.prototype.flags/implementation.js