question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parse times in parenthesis, quotes, and other boundary-like characters

See original GitHub issue

I noticed Chrono doesn’t recognize times if they are surrounded by parenthesis.

Want to meet for dinner (5pm EST)? --> Does not parse Want to meet for dinner, 5pm EST? --> 5:00 PM

I believe this is because Chrono considers parenthesis like normal characters (the same as if we were to do “X5pmX”), and not like boundary characters.

Similarly with quotes:

He said “5pm” --> Does not parse He said 5pm --> 5:00 PM

Similar behavior for most boundary-like characters: ( ) [ ] { } < > " '

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wanasitcommented, Apr 2, 2021

I replied the comment. Thanks for checking.

I noticed this is not published to npm yet but maybe that is on purpose.

Yes. I still feel it’s not well tested enough and I also would like to fix other issues as well if I have time this weekend.

0reactions
wanasitcommented, Apr 4, 2021

Published 2.2.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parsing brackets and quotes - Stack Overflow
I have a vector of strings and I would like to parse it. However, the brackets in combinations with quotes ...
Read more >
Extracting Text between Characters [Two Examples] - YouTube
If you ever get files from others, there are times when there's extra ... in some special characters like quotes, brackets or parentheses....
Read more >
Practical Perl Programming
The Other Side -- receiving and processing information in CGI ( Perl) script ... String Literals are groups of characters surrounded by quotes...
Read more >
AUCTeX 13.1 - GNU.org
The quotation characters will only be used if both variables— LaTeX-csquotes-open-quote and LaTeX-csquotes-close-quote —are non-empty strings.
Read more >
Talk:Navajo language/Archive 1 - Wikipedia
Other things happen at the stem boundary, like increased closure duration of stops. Related Western Apache /t/ (orthographic d) flaps between vowels except ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found