Skip to content

Commit

Permalink
Merge pull request #318 from gitrist/wei.liang/fix-comment
Browse files Browse the repository at this point in the history
Chore: fix the word 'length' spell error
  • Loading branch information
yiminghe committed Aug 16, 2022
2 parents 84c8d1d + 8d610e3 commit b9a84a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rule/range.ts
Expand Up @@ -29,7 +29,7 @@ const range: ExecuteRule = (rule, value, source, errors, options) => {
val = value.length;
}
if (str) {
// 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
// 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".length !== 3
val = value.replace(spRegexp, '_').length;
}
if (len) {
Expand Down

0 comments on commit b9a84a7

Please sign in to comment.