File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ All notable changes to this project will be documented in this file. See [standa
23
23
24
24
### Bug Fixes
25
25
26
- * fix elipses logic ([ 0fdb30f] ( https://github.com/nuxt/webpackbar/commit/0fdb30f ) )
26
+ * fix ellipsis logic ([ 0fdb30f] ( https://github.com/nuxt/webpackbar/commit/0fdb30f ) )
27
27
28
28
29
29
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const firstMatch = (regex, str) => {
45
45
return m ? m [ 0 ] : null ;
46
46
} ;
47
47
48
- export const parseRequst = ( requestStr ) => {
48
+ export const parseRequest = ( requestStr ) => {
49
49
const parts = ( requestStr || '' ) . split ( '!' ) ;
50
50
51
51
const file = path . relative (
@@ -123,14 +123,14 @@ export const formatStats = (allStats) => {
123
123
return lines . join ( '\n\n' ) ;
124
124
} ;
125
125
126
- export function elipses ( str , n ) {
126
+ export function ellipsis ( str , n ) {
127
127
if ( str . length <= n - 3 ) {
128
128
return str ;
129
129
}
130
130
return `${ str . substr ( 0 , n - 1 ) } ...` ;
131
131
}
132
132
133
- export function elipsesLeft ( str , n ) {
133
+ export function ellipsisLeft ( str , n ) {
134
134
if ( str . length <= n - 3 ) {
135
135
return str ;
136
136
}
You can’t perform that action at this time.
0 commit comments