From 597d3bf00649c5bfe86981d2a607f4ed98ac9259 Mon Sep 17 00:00:00 2001 From: seancannon Date: Wed, 3 Nov 2021 09:44:17 -0700 Subject: [PATCH] 0.7.6 - update dist strings --- dist/predicates/strings.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/predicates/strings.js b/dist/predicates/strings.js index 298d30e..637df4e 100644 --- a/dist/predicates/strings.js +++ b/dist/predicates/strings.js @@ -32,6 +32,7 @@ var isNumericString = function isNumericString(str) { }; var isTimestamp = R.test(/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/); +var isMySqlTimestamp = R.test(/^([1-2][0-9]{3})-([0-1][0-9])-([0-3][0-9])(?:( [0-2][0-9]):([0-5][0-9]):([0-5][0-9]))?$/); var isJSON = function isJSON(str) { try { @@ -57,7 +58,8 @@ module.exports = { stringIsOneOf: stringIsOneOf, isNumericString: isNumericString, isTimestamp: isTimestamp, + isMySqlTimestamp: isMySqlTimestamp, isEmail: isEmail, isJSON: isJSON }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9wcmVkaWNhdGVzL3N0cmluZ3MuanMiXSwibmFtZXMiOlsiUiIsInJlcXVpcmUiLCJfXyIsImlzU3RyaW5nIiwiaXMiLCJTdHJpbmciLCJpc1N0cmluZ09mTGVuZ3RoIiwib2ZMZW5ndGgiLCJpc1N0cmluZ09mTGVuZ3RoQXRMZWFzdCIsImlzU3RyaW5nT2ZMZW5ndGhBdE1vc3QiLCJpc1N0cmluZ0xvbmdlclRoYW4iLCJpc1N0cmluZ1Nob3J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FtcCxcbiAgaXNNeVNxbFRpbWVzdGFtcCxcbiAgaXNFbWFpbCxcbiAgaXNKU09OXG59O1xuIl19 \ No newline at end of file diff --git a/package.json b/package.json index 4d5e8b8..bb86930 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prettycats", - "version": "0.7.5", + "version": "0.7.6", "description": "Helpful, common, and curried predicates library built on Ramda.", "main": "dist/prettycats.js", "dependencies": {