Skip to content

Commit

Permalink
Update retext-equality, retext-profanities
Browse files Browse the repository at this point in the history
Closes GH-329.
  • Loading branch information
wooorm committed Jun 18, 2022
1 parent 34360a3 commit 1b4c1be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
"remark-parse": "^10.0.0",
"remark-retext": "^5.0.0",
"retext-english": "^4.0.0",
"retext-equality": "~6.3.0",
"retext-profanities": "~7.1.0",
"retext-equality": "~6.6.0",
"retext-profanities": "~7.2.0",
"unified": "^10.0.0",
"unified-diff": "^4.0.0",
"unified-engine": "^10.0.0",
Expand Down
10 changes: 6 additions & 4 deletions test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ test('alex()', function (t) {
].join('\n')
).messages.map(String),
[
'1:44-1:50: `master` may be insensitive, use `primary`, `hub`, `reference` instead',
'1:44-1:50: `master` may be insensitive, use `primary`, `lead`, `hub`, `reference` instead',
'2:5-2:11: `slaves` may be insensitive, use `secondaries`, `workers`, `replicas`, `nodes` instead',
'2:5-2:11: Don’t use `slaves`, it’s profane',
'2:37-2:43: `master` may be insensitive, use `primary`, `hub`, `reference` instead',
'2:37-2:43: `master` may be insensitive, use `primary`, `lead`, `hub`, `reference` instead',
'3:1-3:3: `he` may be insensitive, use `they`, `it` instead',
'3:11-3:18: `cripple` may be insensitive, use `person with a limp` instead',
'5:36-5:40: Be careful with `butt`, it’s profane in some cases'
Expand Down Expand Up @@ -131,9 +132,10 @@ test('alex()', function (t) {
).messages.map(String),
[
'1:6-1:15: `boogeyman` may be insensitive, use `boogeymonster` instead',
'1:44-1:50: `master` may be insensitive, use `primary`, `hub`, `reference` instead',
'1:44-1:50: `master` may be insensitive, use `primary`, `lead`, `hub`, `reference` instead',
'2:5-2:11: `slaves` may be insensitive, use `secondaries`, `workers`, `replicas`, `nodes` instead',
'2:5-2:11: Don’t use `slaves`, it’s profane',
'2:37-2:43: `master` may be insensitive, use `primary`, `hub`, `reference` instead',
'2:37-2:43: `master` may be insensitive, use `primary`, `lead`, `hub`, `reference` instead',
'3:1-3:3: `he` may be insensitive, use `they`, `it` instead',
'3:11-3:18: `cripple` may be insensitive, use `person with a limp` instead',
'5:36-5:40: Be careful with `butt`, it’s profane in some cases'
Expand Down

0 comments on commit 1b4c1be

Please sign in to comment.