projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f0b91148e6047241596c18adb2291efcfb326ddb
[dotfiles/.git]
/
flags.js
1
var flags = require('../regexp/flags');
2
3
var RegExpPrototype = RegExp.prototype;
4
5
module.exports = function (it) {
6
return (it === RegExpPrototype || it instanceof RegExp) && !('flags' in it) ? flags(it) : it.flags;
7
};