Skip to content

Commit 90ddd89

Browse files
committed
Update library to require space before and after $
1 parent c7f6e36 commit 90ddd89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/util/codeql/util/test/InlineExpectationsTest.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ module Make<InlineExpectationsTestSig Impl> {
521521
* is treated as part of the expected results, except that the comment may contain a `//` sequence
522522
* to treat the remainder of the line as a regular (non-interpreted) comment.
523523
*/
524-
private string expectationCommentPattern() { result = "\\s*\\$((?:[^/]|/[^/])*)(?://.*)?" }
524+
private string expectationCommentPattern() { result = "\\s+\\$ ((?:[^/]|/[^/])*)(?://.*)?" }
525525

526526
/**
527527
* The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first

0 commit comments

Comments
 (0)