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

Allowed real number appear in text like "5.5 days ago" #111

Merged
merged 1 commit into from
Sep 4, 2015

Conversation

philiptzou
Copy link
Collaborator

See #100.

@philiptzou
Copy link
Collaborator Author

@bear @idpaterson can you help to review this? Thank you!

@bear
Copy link
Owner

bear commented Sep 3, 2015

+1 looks good to me

@idpaterson
Copy link
Collaborator

This looks great! I wonder if we should allow values between 0 and 1 without a leading zero? For example, .3333 or .5. It looks like the regex will not pick those up: (?:\d+(?:{decimal_mark}\d+|)). This could instead be (?:\d*{decimal_mark}\d+|\d+).

I haven't tested that so there may be conflicts but that's the only suggestion I have - good work!

@bear
Copy link
Owner

bear commented Sep 4, 2015

let's merge this and then iterate on the [non]leading zero issue next pass

philiptzou added a commit that referenced this pull request Sep 4, 2015
Allowed real number appear in text like "5.5 days ago"
@philiptzou philiptzou merged commit 24dba19 into bear:master Sep 4, 2015
@philiptzou
Copy link
Collaborator Author

Cool! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants