Closed drtconway closed 3 months ago
Nice, thanks! This looks fine now.
Just a note: It is more customary to modify an existing PR until it is satisfactory because otherwise the previous discussion (as in #410) is lost. But no worries, this is not a problem here.
I added a couple of tests in 444c94858c2f7de74a1468adb1992e2f7f865385 and a changelog entry in c3ea0d250d4c528e30c9205a9546375e33400bf6.
I've reworked the change I proposed earlier to use
std::regex
which makes it neater.It now splits on whitespace, then checks that the name is SAM-compatible.