Skip to content

Commit 07e12a1

Browse files
committed
chore(deps): update kuromojin && morpheme-match
1 parent 880ec2e commit 07e12a1

File tree

3 files changed

+2418
-1458
lines changed

3 files changed

+2418
-1458
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
"textlintrule"
3535
],
3636
"devDependencies": {
37-
"textlint-scripts": "^1.4.2"
37+
"textlint-scripts": "^3.0.0"
3838
},
3939
"dependencies": {
40-
"kuromojin": "^1.4.0",
41-
"morpheme-match": "^1.0.1",
42-
"morpheme-match-all": "^1.1.0"
40+
"kuromojin": "^2.0.0",
41+
"morpheme-match": "^2.0.4",
42+
"morpheme-match-all": "^2.0.5"
4343
}
4444
}

src/textlint-rule-ja-no-weak-phrase.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"use strict";
33
const tokenize = require("kuromojin").tokenize;
44
const dictionaryList = require("./dict");
5-
const createTokenMatcher = require("morpheme-match-all");
6-
const matchAll = createTokenMatcher(dictionaryList);
7-
module.exports = function(context) {
5+
const { createMatcher } = require("morpheme-match-all");
6+
const matchAll = createMatcher(dictionaryList);
7+
module.exports = function (context) {
88
const { Syntax, RuleError, report, getSource } = context;
99
return {
1010
[Syntax.Str](node) {

0 commit comments

Comments
 (0)