Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parse-messy-time

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-messy-time - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

index.js

@@ -13,3 +13,3 @@ var months = [

var tokre = RegExp(
'\\s+|(\\d+(?:th|nd|rd|th))'
'\\s+|(\\d+(?:st|th|nd|rd|th))\\b'
+ '|' + hmsre.source + '([A-Za-z]+)'

@@ -16,0 +16,0 @@ + '|([A-Za-z]+)' + hmsre.source

{
"name": "parse-messy-time",
"version": "2.0.1",
"version": "2.0.2",
"description": "parse messy human date and time strings",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -228,3 +228,28 @@ var parse = require('../');

);
t.equal(
strftime('%F', parse('the 1st', optsd)),
'2015-04-01',
'the 1st'
);
t.equal(
strftime('%F', parse('the 2nd', optsd)),
'2015-04-02',
'the 2nd'
);
t.equal(
strftime('%F', parse('the 3rd', optsd)),
'2015-04-03',
'the 3rd'
);
t.equal(
strftime('%F', parse('the 4th', optsd)),
'2015-04-04',
'the 4th'
);
t.equal(
strftime('%F', parse('the 10th', optsd)),
'2015-04-10',
'the 10th'
);
t.end();
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc