Update javascript/ql/src/semmle/javascript/Expr.qll

Co-Authored-By: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
This commit is contained in:
Asger F
2019-11-13 13:16:16 +00:00
committed by Asger F
parent 77e5305b9b
commit 607aed37ee

View File

@@ -413,7 +413,7 @@ class StringLiteral extends @stringliteral, Literal {
/**
* Gets the value of this string literal parsed as a regular expression, if possible.
*
* All string literals have an associated regular expression tree, provided it can
* All string literals have an associated regular expression tree, provided they can
* be parsed without syntax errors.
*/
RegExpTerm asRegExp() { this = result.getParent() }
@@ -2664,4 +2664,4 @@ class OptionalChainRoot extends ChainElem {
*/
class ImportMetaExpr extends @importmetaexpr, Expr {
override predicate isImpure() { none() }
}
}