Accept only EOL comments as Kotlin expectation comments

This commit is contained in:
Tony Torralba
2022-05-17 13:05:51 +02:00
parent 2b6d7bb3d8
commit dbf249b199
2 changed files with 12 additions and 3 deletions

View File

@@ -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() }
}