nlohmann / json

JSON for Modern C++
https://json.nlohmann.me
MIT License
42.18k stars 6.65k forks source link

PrettyPrinter: Check if match is valid before accessing group #3920

Closed Finkman closed 1 year ago

Finkman commented 1 year ago

[Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.]

Is closing #3919 by checking if match group is available. Also converts argument to string.

Pull request checklist

Read the Contribution Guidelines for detailed information.

Please don't

coveralls commented 1 year ago

Coverage Status

Coverage: 100.0%. Remained the same when pulling 877d21a233c11d750d335b5ba6671c5e27999f6b on Finkman:fix-json-pretty-printer into 4c6cde72e533158e044252718c013a48bcff346c on nlohmann:develop.

nlohmann commented 1 year ago

Thanks!