Skip to content

Commit

Permalink
Change "forth" to "fourth"
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanoehlman committed Jan 2, 2014
1 parent 71af229 commit 6585e18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ where pattern is a JSON object with the following options:
'for' should be an integer (for N occurrences). required.
- until: if end_condition is 'until', pass the date here.
- rfor: if end_condition is 'for', pass an integer here.
- nth: valid values are 'first', 'second', 'third', 'forth', and 'last'.
- nth: valid values are 'first', 'second', 'third', 'fourth', and 'last'.
see 'occurrence_of' option. to be used with 'm' unit option.
- occurrence_of: valid values are 0-6, corresponding to the days of the week.
in conjuction with 'nth' option, specifies nth day of the month
Expand Down
2 changes: 1 addition & 1 deletion lib/recurring.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function RecurringDate (pattern, date_format) {
RecurringDate.prototype.describe = function () {
var units = {'d': 'day', 'w': 'week', 'm': 'month', 'y': 'year'};
var week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'day'];
var nthword = ['', 'first', 'second', 'third', 'forth', 'fifth', 'last']
var nthword = ['', 'first', 'second', 'third', 'fourth', 'fifth', 'last']

var t = ['Every'];
if (this.every > 2) {
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "recurring-date",
"version": "0.0.1",
"version": "0.0.2",
"description": "Generate a list of dates that meet a given schedule",
"main": "index.js",
"scripts": {
Expand All @@ -21,6 +21,10 @@
"moment": "~2.5.0",
"underscore": "~1.5.2"
},
"contributors": [
"Matt Grayson (https://github.com/mattgrayson)",
"Rachot Moragraan (https://github.com/mooman)"
],
"devDependencies": {
"expect.js": "~0.2.0"
}
Expand Down

0 comments on commit 6585e18

Please sign in to comment.