Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Hyphenate the arguments #2

Merged
merged 1 commit into from
Jul 29, 2015
Merged

Hyphenate the arguments #2

merged 1 commit into from
Jul 29, 2015

Conversation

cillianderoiste
Copy link
Contributor

IIUC this isn't being used anywhere, so I didn't add an alias for the older arguments. Please let me know if I should.

@cillianderoiste
Copy link
Contributor Author

@jcbrand does this look OK?

@jcbrand
Copy link
Contributor

jcbrand commented Jul 29, 2015

@cillianderoiste Perfect, thanks!

jcbrand added a commit that referenced this pull request Jul 29, 2015
@jcbrand jcbrand merged commit 319d528 into master Jul 29, 2015
@@ -47,8 +47,8 @@
var date = moment(dateStr, options.format, options.locale, options.strict);
if (options.fromNow == true) {
date = date.fromNow();
} else if (options.outputFormat.length) {
date = date.format(options.outputFormat);
} else if (options.output.format.length) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be hyphenated, not dot separated?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's correct like that. The parser creates the options object like that.

@adrianwhite adrianwhite deleted the hyphenate branch March 11, 2016 10:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants