File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11<!--
2- A simple wrapper for embeded Tweet
2+ A simple wrapper for embedded Tweet
33
44Usage:
55
Original file line number Diff line number Diff line change 33 isArray ,
44 ensureSlash ,
55 ensureStartingSlash ,
6- removeExtention ,
6+ removeExtension ,
77} from '../utils'
88
99export function isSideBarConfig (
@@ -33,7 +33,7 @@ export function getSideBarConfig(
3333
3434 // get the very first segment of the path to compare with nulti sidebar keys
3535 // and make sure it's surrounded by slash
36- path = removeExtention ( path )
36+ path = removeExtension ( path )
3737 path = ensureStartingSlash ( path ) . split ( '/' ) [ 1 ] || '/'
3838 path = ensureSlash ( path )
3939
@@ -57,7 +57,7 @@ export function getFlatSideBarLinks(
5757) : DefaultTheme . SideBarLink [ ] {
5858 return sidebar . reduce < DefaultTheme . SideBarLink [ ] > ( ( links , item ) => {
5959 if ( item . link )
60- links . push ( { text : item . text , link : removeExtention ( item . link ) } )
60+ links . push ( { text : item . text , link : removeExtension ( item . link ) } )
6161
6262 if ( isSideBarGroup ( item ) )
6363 links = [ ...links , ...getFlatSideBarLinks ( item . children ) ]
Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ export function ensureEndingSlash(path: string): string {
6969}
7070
7171/**
72- * Remove `.md` or `.html` extention from the given path. It also converts
72+ * Remove `.md` or `.html` extension from the given path. It also converts
7373 * `index` to slush.
7474 */
75- export function removeExtention ( path : string ) : string {
75+ export function removeExtension ( path : string ) : string {
7676 return path . replace ( / ( i n d e x ) ? ( \. ( m d | h t m l ) ) ? $ / , '' ) || '/'
7777}
You can’t perform that action at this time.
0 commit comments