Skip to content

Commit 63c163c

Browse files
authored
Merge pull request #2069 from Handsome2734/master
fix Chinese formatDate error on npm start
2 parents 21ab834 + d45762d commit 63c163c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/util/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ exports.formatTime = function(date) {
4545
return [
4646
date.toLocaleDateString(),
4747
date.toLocaleTimeString(),
48-
date.toString().match(/\(([A-Za-z\s].*)\)/)[1]
48+
date.toString().match(/\(([A-Za-z\s\u4E00-\u9FCC].*)\)/)[1] // fix Chinese datetime string error. #1630
4949
].join(' ');
5050
};
5151

0 commit comments

Comments
 (0)