Skip to content

Commit

Permalink
improved case: datatime zh
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang committed Feb 13, 2020
1 parent 670913d commit f976eea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rules/case-datetime-zh.js
Expand Up @@ -6,6 +6,9 @@ const {

module.exports = (token, index, group, matched, marks) => {
if (token.type === 'content-half') {
if (!token.content.match(/^[\d\.]+$/)) {
return
}
const contentTokenBefore = findContentTokenBefore(group, token)
const contentTokenAfter = findContentTokenAfter(group, token)
if (
Expand Down

0 comments on commit f976eea

Please sign in to comment.