Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Sep 3, 2018
1 parent c72c7c1 commit 3b5c9cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ All notable changes to this project will be documented in this file. See [standa

### Bug Fixes

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



Expand Down
6 changes: 3 additions & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const firstMatch = (regex, str) => {
return m ? m[0] : null;
};

export const parseRequst = (requestStr) => {
export const parseRequest = (requestStr) => {
const parts = (requestStr || '').split('!');

const file = path.relative(
Expand Down Expand Up @@ -123,14 +123,14 @@ export const formatStats = (allStats) => {
return lines.join('\n\n');
};

export function elipses(str, n) {
export function ellipsis(str, n) {
if (str.length <= n - 3) {
return str;
}
return `${str.substr(0, n - 1)}...`;
}

export function elipsesLeft(str, n) {
export function ellipsisLeft(str, n) {
if (str.length <= n - 3) {
return str;
}
Expand Down

0 comments on commit 3b5c9cf

Please sign in to comment.