mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Accept only EOL comments as Kotlin expectation comments
This commit is contained in:
@@ -16,7 +16,7 @@ private class JavadocExpectationComment extends Javadoc, ExpectationComment {
|
||||
}
|
||||
|
||||
private class KtExpectationComment extends KtComment, ExpectationComment {
|
||||
override string getContents() {
|
||||
result = this.getText().regexpCapture("(?://|/\\*)(.*)(?:\\*/)?", 1)
|
||||
}
|
||||
KtExpectationComment() { this.isEolComment() }
|
||||
|
||||
override string getContents() { result = this.getText().suffix(2).trim() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user