Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Context patterns not matching the same as CLI interface #74

Closed
cdcrockett opened this issue Jan 24, 2011 · 2 comments
Closed

Context patterns not matching the same as CLI interface #74

cdcrockett opened this issue Jan 24, 2011 · 2 comments
Labels

Comments

@cdcrockett
Copy link

When using a formatted date string as a context, the Touch interface does not use the same pattern match as the CLI. Example:
@2011-01-11 is matched as a context in the CLI, Todo Touch only recognizes the same context as @2011

@gwadej
Copy link
Contributor

gwadej commented Jan 31, 2011

The same problem applies to projects. My +todo.txt project for trying to help with this is not recognized either.

@ginatrapani
Copy link
Member

More robust handling of context and project names

Both context and project names only matched "word" characters. Basically
alphanumerics and underscore. There are often times where some internal
punction makes sense. (A project of todo.txt or a context of 2010-01-30)

This changes both expressions to match non-space characters, with the
final character being a word character. I added the last to not include
a potential final '.' or ',' if someone were adding the contexts or
projects by hand.

Closed by 8c82f10, Closed by 8c82f10

hrayr-artunyan pushed a commit to hrayr-artunyan/todo.txt-touch that referenced this issue Nov 27, 2011
Both context and project names only matched "word" characters. Basically
alphanumerics and underscore. There are often times where some internal
punction makes sense. (A project of todo.txt or a context of 2010-01-30)

This changes both expressions to match non-space characters, with the
final character being a word character. I added the last to not include
a potential final '.' or ',' if someone were adding the contexts or
projects by hand.

Closes todotxt#74, closes todotxt#97
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants