fix(store.c): improve root path integrity check with range-based validation#311
Conversation
…dation Replace the fragile NOT IN list of individual characters with a range-based BETWEEN 'A' AND 'Z' check for validating project root paths. The previous query only excluded letters A–H, leaving paths starting with I–Z silently invalid. In Windows, all the alphabet can be used. A Windows drive starting with letters I-Z breaks the saving of the database.
|
Merged via rebase, thanks @noctrex. Good catch — the original One follow-up worth knowing about (not blocking, won't change here): the integrity check still only accepts uppercase drive letters. If Closes the same diagnosis from #309. Nice contribution. |
I only catched this because I have a drive called R:, and it was failing for this specific drive :) |
Replace the
NOT INlist of individual characters with a range-basedBETWEEN 'A' AND 'Z'check for validating project root paths.The previous query only excluded letters A–H, leaving paths starting with I–Z silently invalid.
In Windows, all the alphabet can be used.
A Windows drive starting with letters I-Z breaks the saving of the database.