moment-parseformat
Advanced tools
Comparing version 2.1.4 to 2.2.0
@@ -30,5 +30,5 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.momentParseformat = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
var regexFirstSecondThirdFourth = /(\d+)(st|nd|rd|th)\b/i | ||
var regexEndian = /(\d{1,4})([\/\.\-])(\d{1,2})[\/\.\-](\d{1,4})/ | ||
var regexEndian = /(\d{1,4})([/.-])(\d{1,2})[/.-](\d{1,4})/ | ||
var regexTimezone = /((\+|\-)\d\d:?\d\d)$/ | ||
var regexTimezone = /((\+|-)\d\d:?\d\d)$/ | ||
var amOrPm = '(' + [amDesignator, pmDesignator].join('|') + ')' | ||
@@ -68,3 +68,3 @@ var lowerAmOrPm = '(' + [lowerAMDesignator, lowerPMDesignator].join('|') + ')' | ||
var formatIncludesMonth = /([\/][M]|[M][\/]|[MM]|[MMMM])/ | ||
var formatIncludesMonth = /([/][M]|[M][/]|[MM]|[MMMM])/ | ||
@@ -84,3 +84,3 @@ var regexFillingWords = /\b(at)\b/i | ||
function parseFormat (dateString, options) { | ||
var format = dateString | ||
var format = dateString.toString() | ||
@@ -87,0 +87,0 @@ // default options |
@@ -20,5 +20,5 @@ module.exports = parseFormat | ||
var regexFirstSecondThirdFourth = /(\d+)(st|nd|rd|th)\b/i | ||
var regexEndian = /(\d{1,4})([\/\.\-])(\d{1,2})[\/\.\-](\d{1,4})/ | ||
var regexEndian = /(\d{1,4})([/.-])(\d{1,2})[/.-](\d{1,4})/ | ||
var regexTimezone = /((\+|\-)\d\d:?\d\d)$/ | ||
var regexTimezone = /((\+|-)\d\d:?\d\d)$/ | ||
var amOrPm = '(' + [amDesignator, pmDesignator].join('|') + ')' | ||
@@ -58,3 +58,3 @@ var lowerAmOrPm = '(' + [lowerAMDesignator, lowerPMDesignator].join('|') + ')' | ||
var formatIncludesMonth = /([\/][M]|[M][\/]|[MM]|[MMMM])/ | ||
var formatIncludesMonth = /([/][M]|[M][/]|[MM]|[MMMM])/ | ||
@@ -74,3 +74,3 @@ var regexFillingWords = /\b(at)\b/i | ||
function parseFormat (dateString, options) { | ||
var format = dateString | ||
var format = dateString.toString() | ||
@@ -77,0 +77,0 @@ // default options |
@@ -45,3 +45,3 @@ { | ||
"semantic-release": "^6.0.3", | ||
"standard": "^7.0.0", | ||
"standard": "^8.0.0", | ||
"tap-spec": "^4.1.0", | ||
@@ -65,3 +65,3 @@ "tape": "^4.2.0" | ||
}, | ||
"version": "2.1.4" | ||
"version": "2.2.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25816