Skip to content
Snippets Groups Projects
Commit 56a04158 authored by Clement Ho's avatar Clement Ho
Browse files

Fix potential EE conflict

parent cd0ae854
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -136,6 +136,7 @@ window.dateFormat = dateFormat;
* @param {Number} seconds
* @return {String}
*/
// eslint-disable-next-line import/prefer-default-export
export function timeIntervalInWords(intervalInSeconds) {
const secondsInteger = parseInt(intervalInSeconds, 10);
const minutes = Math.floor(secondsInteger / 60);
Loading
Loading
Loading
Loading
@@ -17,16 +17,6 @@ export const addDelimiter = text => (text ? text.toString().replace(/\B(?=(\d{3}
*/
export const highCountTrim = count => (count > 99 ? '99+' : count);
 
/**
* Capitalizes first character
*
* @param {String} text
* @return {String}
*/
export function capitalizeFirstCharacter(text) {
return `${text[0].toUpperCase()}${text.slice(1)}`;
}
/**
* Converst first char to uppercase and replaces undercores with spaces
* @param {String} string
Loading
Loading
@@ -65,3 +55,12 @@ export const slugify = str => str.trim().toLowerCase();
*/
export const truncate = (string, maxLength) => `${string.substr(0, (maxLength - 3))}...`;
 
/**
* Capitalizes first character
*
* @param {String} text
* @return {String}
*/
export function capitalizeFirstCharacter(text) {
return `${text[0].toUpperCase()}${text.slice(1)}`;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment