Skip to content

Commit 501485b

Browse files
committed
Update library to require space after $
We cannot easily require a space before $ because some languages, like C#, strip whitespace from the beginning of the comment text.
1 parent 1950fd3 commit 501485b

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)