jsTodoTxt icon indicating copy to clipboard operation
jsTodoTxt copied to clipboard

Validation of extensions

Open ransome1 opened this issue 1 year ago • 0 comments

Hi @jmhobbs .

Hope you're doing well. Happy Christmas to you and you family.

Here comes a last request for this year :) It would be good to have a way of validating if the value of an extension matches a rule set.

A good example would be recurrences, which are used in many todo.txt apps. A recurrence in sleek can look as simply as rec:d, but can also be rec:+2m. However it cannot be rec:1z, since recurrences in sleek are limited to d, b, w, m and y.

If one could define a regex for a specific extension, we could avoid jsTodoTxt detecting values, which don't make sense for specific use cases.

ransome1 avatar Dec 23 '23 07:12 ransome1