Index: src/mirror-debugger.js |
diff --git a/src/mirror-debugger.js b/src/mirror-debugger.js |
index c325e58c869330b6e90d6443436293e8ecbfdfbc..be068ee7f8b88bf6eca5b2a265ec370b7c6e03ce 100644 |
--- a/src/mirror-debugger.js |
+++ b/src/mirror-debugger.js |
@@ -1265,6 +1265,15 @@ RegExpMirror.prototype.multiline = function() { |
}; |
+/** |
+ * Returns whether this regular expression has the sticky (y) flag set. |
+ * @return {boolean} Value of the sticky flag |
+ */ |
+RegExpMirror.prototype.sticky = function() { |
+ return this.value_.sticky; |
+}; |
+ |
+ |
RegExpMirror.prototype.toText = function() { |
// Simpel to text which is used when on specialization in subclass. |
return "/" + this.source() + "/"; |