Match all characters when testing comments for JSON

`.` doesn't match newline chars.

Bug: 54927
Change-Id: Ibe425c30dedbaf7a17502675861d49259f194d1c
Merge "Match all characters when testing comments for JSON"