Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dates not perfectly recognized [if they contain non-signifier text after the signifiers] #1809

Closed
2 of 8 tasks
lebigot opened this issue Mar 29, 2023 · 1 comment
Closed
2 of 8 tasks
Labels
duplicate This issue, pull request or discussion already exists scope: parsing markdown See also 'scope: global filter' type: bug Something isn't working

Comments

@lebigot
Copy link

lebigot commented Mar 29, 2023

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

I would expect the date in the following task to be recognized by Tasks, as it would by a human:

  • Take the garbage out before 📅 2023-03-29.

Ideally, dates would be parsed with something like \d+-\d\d-\d\d, with an additional safety for preventing a non-digit at the end.

Current behaviour

The date in the above task is not recognized in a task block, because of the final period (a final parenthesis also prevents the date from being recognized). This is very inconvenient, as missing due dates, etc. has a big impact.

Steps to reproduce

The example above is not recognized by a block like:

```tasks
not done
happens before in 1 week
…

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.1.16

Tasks Plugin Version

2.0.1

Checks

  • I have tried it with all other plugins disabled and the error still occurs

Possible solution

The only solution is currently to be very careful and put a space or nothing after a date.

@lebigot lebigot added the type: bug Something isn't working label Mar 29, 2023
@claremacrae claremacrae added the scope: parsing markdown See also 'scope: global filter' label Mar 29, 2023
@claremacrae
Copy link
Collaborator

Closing as duplicate of #1505.

@claremacrae claremacrae closed this as not planned Won't fix, can't repro, duplicate, stale Mar 29, 2023
@claremacrae claremacrae added the duplicate This issue, pull request or discussion already exists label Mar 29, 2023
@claremacrae claremacrae changed the title Dates not perfectly recognized Dates not perfectly recognized [if they contain non-signifier text after the signifiers] Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue, pull request or discussion already exists scope: parsing markdown See also 'scope: global filter' type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants