Sha256: 33c9f1ca63265cff08e43fe8f741c1ad93a7cdad5dc2a3cd96b3baeeaf206398

Contents?: true

Size: 511 Bytes

Versions: 9

Compression:

Stored size: 511 Bytes

Contents

'use strict';

var toObject = Object;
var TypeErr = TypeError;

module.exports = function flags() {
	if (this != null && this !== toObject(this)) {
		throw new TypeErr('RegExp.prototype.flags getter called on non-object');
	}
	var result = '';
	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.sticky) {
		result += 'y';
	}
	return result;
};

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/regexp.prototype.flags/implementation.js
disco_app-0.18.2 test/dummy/node_modules/regexp.prototype.flags/implementation.js
disco_app-0.16.1 test/dummy/node_modules/regexp.prototype.flags/implementation.js
disco_app-0.15.2 test/dummy/node_modules/regexp.prototype.flags/implementation.js
disco_app-0.18.4 test/dummy/node_modules/regexp.prototype.flags/implementation.js
disco_app-0.18.1 test/dummy/node_modules/regexp.prototype.flags/implementation.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/regexp.prototype.flags/implementation.js
disco_app-0.14.0 test/dummy/node_modules/regexp.prototype.flags/implementation.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/regexp.prototype.flags/implementation.js