Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 3, 2019
1 parent 66cd49f commit c90dd84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"unified": "^8.3.2",
"unist-builder": "^1.0.4",
"unist-util-remove-position": "^1.1.0",
"unist-util-visit": "^1.4.1",
"unist-util-visit": "^2.0.0",
"vfile": "^4.0.1",
"wcwidth": "^1.0.1",
"xo": "^0.24.0"
"xo": "^0.25.0"
},
"scripts": {
"postinstall": "lerna bootstrap --no-ci",
Expand Down Expand Up @@ -62,6 +62,8 @@
"esnext": false,
"rules": {
"unicorn/prefer-type-error": "off",
"unicorn/prefer-reflect-apply": "off",
"unicorn/prefer-includes": "off",
"eqeqeq": [
"error",
"always",
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-parse/lib/tokenize/auto-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function autoLink(eat, value, silent) {

if (hasAtCharacter) {
if (link.slice(0, mailtoLength).toLowerCase() === mailto) {
content = content.substr(mailtoLength)
content = content.slice(mailtoLength)
now.column += mailtoLength
now.offset += mailtoLength
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-parse/lib/tokenize/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function url(eat, value, silent) {
return
}

content = content.substr(mailto.length)
content = content.slice(mailto.length)
}

/* istanbul ignore if - never used (yet) */
Expand Down
4 changes: 2 additions & 2 deletions packages/remark-parse/lib/tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function factory(type) {
// throw on new, incorrect rules.
function validateEat(subvalue) {
/* istanbul ignore if */
if (value.substring(0, subvalue.length) !== subvalue) {
if (value.slice(0, subvalue.length) !== subvalue) {
// Capture stack-trace.
self.file.fail(
new Error(
Expand Down Expand Up @@ -235,7 +235,7 @@ function factory(type) {
reset.test = test
apply.test = test

value = value.substring(subvalue.length)
value = value.slice(subvalue.length)

updatePosition(subvalue)

Expand Down

0 comments on commit c90dd84

Please sign in to comment.