Skip to content

Commit bb26748

Browse files
committed
chore($shared-utils): fix typos in comments
1 parent 245be8d commit bb26748

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

packages/@vuepress/shared-utils/src/extractHeaders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import LRU from 'lru-cache'
22
import deeplyParseHeaders from './deeplyParseHeaders'
33

44
/**
5-
* Extract heeaders from markdown source content.
5+
* Extract headers from markdown source content.
66
*
77
* @param {string} content
88
* @param {array} include

packages/@vuepress/shared-utils/src/moduleLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Midified from https://github.com/vuejs/vue-cli/blob/dev/packages/@0vue/cli-shared-utils/lib/module.js
1+
// Modified from https://github.com/vuejs/vue-cli/blob/dev/packages/@0vue/cli-shared-utils/lib/module.js
22

33
import semver from 'semver'
44
import env from './env'

packages/@vuepress/shared-utils/src/moduleResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class ModuleResolver {
191191
if (req.startsWith('@')) {
192192
const pkg = resolveScopePackage(req)
193193
if (pkg) {
194-
// speicial handling for default org.
194+
// special handling for default org.
195195
if (this.org && pkg.org === this.org) {
196196
shortcut = pkg.name.startsWith(`${this.type}-`)
197197
? pkg.name.slice(this.typePrefixLength)

packages/@vuepress/shared-utils/src/parseHeaders.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import parseEmojis from './parseEmojis'
88
// sidebar or title.
99
//
1010
// But header's parsing in the markdown content is done by the markdown
11-
// loader based on markdown-it. markdown-it parser will will always keep
12-
// HTML in headers, so in VuePress, after being parsed by the markdiwn
11+
// loader based on markdown-it. markdown-it parser will always keep
12+
// HTML in headers, so in VuePress, after being parsed by the markdown
1313
// loader, the raw HTML in headers will finally be parsed by Vue-loader.
1414
// so that we can write HTML/Vue in the header. One exception is the HTML
1515
// wrapped by <code>(markdown token: '`') tag.

packages/@vuepress/shared-utils/src/slugify.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export = function slugify (str: string): string {
1313
.replace(rControl, '')
1414
// Replace special characters
1515
.replace(rSpecial, '-')
16-
// Remove continous separators
16+
// Remove continuous separators
1717
.replace(/\-{2,}/g, '-')
18-
// Remove prefixing and trailing separtors
18+
// Remove prefixing and trailing separators
1919
.replace(/^\-+|\-+$/g, '')
2020
// ensure it doesn't start with a number (#121)
2121
.replace(/^(\d)/, '_$1')

0 commit comments

Comments
 (0)