Skip to content

Commit 3b5c9cf

Browse files
committed
fix: typos
1 parent c72c7c1 commit 3b5c9cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ All notable changes to this project will be documented in this file. See [standa
2323

2424
### Bug Fixes
2525

26-
* fix elipses logic ([0fdb30f](https://github.com/nuxt/webpackbar/commit/0fdb30f))
26+
* fix ellipsis logic ([0fdb30f](https://github.com/nuxt/webpackbar/commit/0fdb30f))
2727

2828

2929

src/utils.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const firstMatch = (regex, str) => {
4545
return m ? m[0] : null;
4646
};
4747

48-
export const parseRequst = (requestStr) => {
48+
export const parseRequest = (requestStr) => {
4949
const parts = (requestStr || '').split('!');
5050

5151
const file = path.relative(
@@ -123,14 +123,14 @@ export const formatStats = (allStats) => {
123123
return lines.join('\n\n');
124124
};
125125

126-
export function elipses(str, n) {
126+
export function ellipsis(str, n) {
127127
if (str.length <= n - 3) {
128128
return str;
129129
}
130130
return `${str.substr(0, n - 1)}...`;
131131
}
132132

133-
export function elipsesLeft(str, n) {
133+
export function ellipsisLeft(str, n) {
134134
if (str.length <= n - 3) {
135135
return str;
136136
}

0 commit comments

Comments
 (0)