put the shared HostnameRegexp code in the shared regex pack

This commit is contained in:
erik-krogh
2022-12-15 14:30:22 +01:00
parent 30451ee950
commit f67d0bc8c0
20 changed files with 369 additions and 653 deletions

View File

@@ -558,6 +558,8 @@ module Impl implements RegexTreeViewSig {
}
}
class RegExpCharEscape = RegExpEscape;
/**
* A word boundary, that is, a regular expression term of the form `\b`.
*/
@@ -868,6 +870,9 @@ module Impl implements RegexTreeViewSig {
predicate isNamedGroupOfLiteral(RegExpLiteral lit, string name) {
lit = this.getLiteral() and name = this.getName()
}
/** Holds if this is a capture group. */
predicate isCapture() { exists(this.getNumber()) }
}
/**