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