Skip to content

Commit

Permalink
chore(deps): update kuromojin && morpheme-match
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jul 25, 2020
1 parent 880ec2e commit 07e12a1
Show file tree
Hide file tree
Showing 3 changed files with 2,418 additions and 1,458 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"textlintrule"
],
"devDependencies": {
"textlint-scripts": "^1.4.2"
"textlint-scripts": "^3.0.0"
},
"dependencies": {
"kuromojin": "^1.4.0",
"morpheme-match": "^1.0.1",
"morpheme-match-all": "^1.1.0"
"kuromojin": "^2.0.0",
"morpheme-match": "^2.0.4",
"morpheme-match-all": "^2.0.5"
}
}
6 changes: 3 additions & 3 deletions src/textlint-rule-ja-no-weak-phrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"use strict";
const tokenize = require("kuromojin").tokenize;
const dictionaryList = require("./dict");
const createTokenMatcher = require("morpheme-match-all");
const matchAll = createTokenMatcher(dictionaryList);
module.exports = function(context) {
const { createMatcher } = require("morpheme-match-all");
const matchAll = createMatcher(dictionaryList);
module.exports = function (context) {
const { Syntax, RuleError, report, getSource } = context;
return {
[Syntax.Str](node) {
Expand Down
Loading

0 comments on commit 07e12a1

Please sign in to comment.