Skip to content

Commit

Permalink
1.5.11
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Mar 31, 2018
1 parent 8c89db8 commit 1201e9f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions dist/xe-utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* xe-utils.js v1.5.10
* xe-utils.js v1.5.11
* (c) 2017-2018 Xu Liangzhan
* ISC License.
* @preserve
Expand Down Expand Up @@ -912,12 +912,12 @@
if (/(y+)/.test(result)) {
result = result.replace(RegExp.$1, ('' + date.getFullYear()).substr(4 - RegExp.$1.length))
}
arrayEach(objectKeys(resDate), function (key) {
if (new RegExp('(' + key + ')').test(result)) {
for (var key in resDate) {
if (resDate.hasOwnProperty(key) && new RegExp('(' + key + ')').test(result)) {
var val = '' + resDate[key]
result = result.replace(RegExp.$1, (key === 'q+' || key === 'E+') ? weeks[val] : (RegExp.$1.length === 1 ? val : ('00' + val).substr(val.length)))
}
})
}
return result
}
return date
Expand Down Expand Up @@ -1356,7 +1356,7 @@

coreMethods.objectAssign(XEUtils, {
mixin: mixin,
version: '1.5.10',
version: '1.5.11',
$name: 'XEUtils'
})

Expand Down
Loading

0 comments on commit 1201e9f

Please sign in to comment.