-
Notifications
You must be signed in to change notification settings - Fork 341
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
Enhance de #442
base: master
Are you sure you want to change the base?
Enhance de #442
Conversation
}); | ||
}); | ||
|
||
// test("Test - Strict mode", function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't leave the commented out code like this.
If we don't have DE strict mode, let's remove it.
}); | ||
}); | ||
|
||
//test("Test - Nested time ago", function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous comment about not leaving commented code.
If we are not ready to support the nested time ref, lets remove this and add it later.
} | ||
|
||
const unit = TIME_UNIT_DICTIONARY[match[4].toLowerCase()]; | ||
let timeUnits = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: first, I'd rename num
to value
and I think let timeUnits = { unit: num };
is clearer to understand.
Hey @georgd. Thanks for the improvement! |
Hey @georgd, this is really useful! In case you currently don’t have time to continue on this would you be fine if I would pick up this PR? |
Hi, indeed I sadly won't have time for this for another couple of months, as it seems. I'd be happy to hand this over to you 😀 |
Back then, I started refactoring the code to bring the DE part on par with EN but I am better with regex than with js so didn't get far in the little time I had. When I find the time, would you mind me proposing improvements? |
I'm not sure how much time I'll have. But probably it won't take a couple of months 😄
Sure! |
No description provided.