Skip to content

Commit 7a489af

Browse files
committed
JS: Add change note
1 parent 66db382 commit 7a489af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

change-notes/1.23/analysis-javascript.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@
5353
## Changes to libraries
5454

5555
* `Expr.getDocumentation()` now handles chain assignments.
56+
* String literals are now parsed as regular expressions.
57+
Consequently, a `RegExpTerm` may occur as part of a string literal or
58+
as a regular expression literal. Queries that search for regular expressions may need to
59+
use `RegExpTerm.isPartOfRegExpLiteral` or `RegExpTerm.isUsedAsRegExp` to restrict the search.
60+
A regular expression AST can be obtained from a string literal using `StringLiteral.asRegExp`.
5661

5762
## Removal of deprecated queries
5863

0 commit comments

Comments
 (0)