Skip to content

Commit ad79a60

Browse files
committed
fix: rename 'ascii' rule to 'notAscii' rule (the meaning does not change)
1 parent 525e83b commit ad79a60

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.git_consistent

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ subject:
6565
rules:
6666
firstLatter: lower
6767
dotAtEnd: false
68-
ascii: false
68+
notAscii: false
6969
issueLink:
7070
type: branch
7171
required: false
@@ -82,4 +82,4 @@ body:
8282
rules:
8383
firstLatter: upper
8484
dotAtEnd: true
85-
ascii: false
85+
notAscii: false

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ link:https://github.com/isuke/git-consistent/blob/master/sample_type_list.adoc[s
366366
| need dot (`.`) input value's last
367367
| boolean
368368

369-
| `ascii`
370-
| allow ASCII?
369+
| `notAscii`
370+
| Use not ascii symbols
371371
| boolean
372372

373373
| `numberOnly`

lib/gen-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const generateDefinitionsFile = (definitionsFileName, answers, dryRun = false) =
122122
rules: {
123123
firstLatter: answers.subjectFirstLatter,
124124
dotAtEnd: answers.subjectDotAtEnd,
125-
ascii: false,
125+
notAscii: false,
126126
}
127127
}
128128

@@ -134,7 +134,7 @@ const generateDefinitionsFile = (definitionsFileName, answers, dryRun = false) =
134134
rules: {
135135
firstLatter: 'upper',
136136
dotAtEnd: true,
137-
ascii: false,
137+
notAscii: false,
138138
}
139139
}
140140

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ const checkValue = (term, value, definition) => {
112112
errorMessages.push(`${term} must be number only.`)
113113
}
114114
break
115-
case 'ascii':
115+
case 'notAscii':
116116
if (!ruleSetting && /[\u30a0-\u30ff\u3040-\u309f\u3005-\u3006\u30e0-\u9fcf]/.test(value)) {
117-
errorMessages.push(`${term} should only alphabet.`)
117+
errorMessages.push(`${term} should only ascii symbols.`)
118118
}
119119
break
120120
default:

0 commit comments

Comments
 (0)