There is a bug where this regex can match multiple lines if a policy contains ':'. Make this regex stricter by making sure the key doesn't end with a ':' within the quotes. Closes-Bug: #1968294 Change-Id: I4090d6831db8ddc4fba294f181085b657e2b3345 (cherry picked from commit33fb90326f) (cherry picked from commit9e10e80160) (cherry picked from commit81ea071166)