astro-ghostcms/.pnpm-store/v3/files/9a/1ffad317f0539a9844c07033d46...

40 lines
694 B
Plaintext

'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);