Ok, If there is a leading /
, that’s a bug and needs addressing. (related to https://forum.obsidian.md/t/leading-slash-causes-multiple-daily-note-to-be-created/71414)
The rest is okayish. It could use some even more stringent checking but it works in most cases.