Morpho can't handle docid prefix containing a period
A user just reported mysterious problems attempting to save and reopen documents in Morpho. It appears the problem is that her prefix contains a period, impairing Morpho's ability to parse the document id.Steps to reproduce:
- Create a new profile, choosing a prefix that contains a period (foo.bar)
- Create a new data package, and save locally
- Restart Morpho
The saved package doesn't appear in the Open Data Package window.
Also, .morpho/profiles/foo.bar/data looks like this:
Rather than this:
Either Morpho needs to be smarter about parsing IDs, or if such a prefix is illegal, it shouldn't allow users to create one containing periods in the first place (and this should be documented).