aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/reg-exp/#/is-sticky.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/reg-exp/#/is-sticky.js')
-rw-r--r--node_modules/es5-ext/reg-exp/#/is-sticky.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/es5-ext/reg-exp/#/is-sticky.js b/node_modules/es5-ext/reg-exp/#/is-sticky.js
new file mode 100644
index 000000000..2d4bb2a65
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/is-sticky.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var validRegExp = require("../valid-reg-exp")
+
+ , re = /\/[a-xz]*y[a-xz]*$/;
+
+module.exports = function () {
+ return Boolean(String(validRegExp(this)).match(re));
+};