From 8abd6982ecec9b07a0d9863d0dcfb9369cfc6477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Fri, 25 May 2018 18:48:06 +0800 Subject: [PATCH] fixed a spelling error --- History.md | 2 +- lib/date.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/History.md b/History.md index 45ea766..dc39684 100644 --- a/History.md +++ b/History.md @@ -1,4 +1,4 @@ -1.0.0 / 2018-05-25 +1.0.1 / 2018-05-25 ================== * delete global extends * add Promise.defer extend diff --git a/lib/date.js b/lib/date.js index dfe72a0..2ac46fb 100644 --- a/lib/date.js +++ b/lib/date.js @@ -83,7 +83,7 @@ if (!Date.prototype.format) { D: dt.day } - for (let i in re) { + for (let i in reg) { str = str.replace(new RegExp(i, 'g'), reg[i]) } return str diff --git a/package.json b/package.json index ae45384..cd68934 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "es.shim", - "version": "1.0.0", + "version": "1.0.1", "description": "Some shim api that let you can use in all node.js environment", "keyworks": [ "es5",