Skip to content

Commit 7dd3956

Browse files
committedMay 9, 2017
Meta tweaks
1 parent 523d7ba commit 7dd3956

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed
 

‎.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ charset = utf-8
77
trim_trailing_whitespace = true
88
insert_final_newline = true
99

10-
[{package.json,*.yml}]
10+
[*.yml]
1111
indent_style = space
1212
indent_size = 2

‎index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ module.exports = str => {
1414
for (let i = 0; i < str.length; i++) {
1515
const code = str.codePointAt(i);
1616

17-
// ignore control characters
18-
if (code <= 0x1f || (code >= 0x7f && code <= 0x9f)) {
17+
// Ignore control characters
18+
if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
1919
continue;
2020
}
2121

22-
// surrogates
22+
// Surrogates
2323
if (code >= 0x10000) {
2424
i++;
2525
}

‎package.json

-3
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,5 @@
5151
"devDependencies": {
5252
"ava": "*",
5353
"xo": "*"
54-
},
55-
"xo": {
56-
"esnext": true
5754
}
5855
}

‎test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import m from './';
2+
import m from '.';
33

44
test('main', t => {
55
t.is(m('abcde'), 5);

0 commit comments

Comments
 (0)
Please sign in to comment.