Skip to content

Commit e228e58

Browse files
committed
feat(prh): update prh to 0.8
1 parent 47e65a6 commit e228e58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
"prh"
3333
],
3434
"dependencies": {
35-
"prh": "^0.7.0",
35+
"prh": "^0.8.0",
3636
"structured-source": "^3.0.2",
3737
"textlint-rule-helper": "^1.1.3"
3838
},
3939
"devDependencies": {
40-
"babel": "^5.8.23",
40+
"babel": "^6.0.14",
4141
"espower-babel": "^3.3.0",
4242
"mocha": "^2.3.2",
4343
"power-assert": "^1.0.0",

src/prh-rule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Please set .textlinrc:
3737
// to get position from index
3838
let src = new StructuredSource(text);
3939
let makeChangeSet = config.makeChangeSet(null, text);
40-
makeChangeSet.forEach(function (changeSet) {
40+
makeChangeSet.diffs.forEach(function (changeSet) {
4141
// | ----[match]------
4242
var slicedText = text.slice(changeSet.index);
4343
// | ----[match------|

0 commit comments

Comments
 (0)