Skip to content

Commit 56ab861

Browse files
committed
Dev
1 parent b2c5911 commit 56ab861

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Notiflix
33
* Description: Next.js configuration.
44
* Version: 1.0.0
5-
* Author: Furkan MT ('https://github.com/furcan')
5+
* Author: Furkan ('https://github.com/furcan')
66
* Copyright 2019-Present Notiflix, GPL-3.0 License ('https://opensource.org/licenses/GPL-3.0')
77
*/
88

src/_database/app/meta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ _dbAppMeta:
66
metaDescription: Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more to that makes your web projects much better.
77
metaRobots: noindex, nofollow, noodp, noydir
88
metaYearInit: 2019.
9-
metaAuthor: 'Furkan MT - https://github.com/furcan'
9+
metaAuthor: 'Furkan - https://github.com/furcan'
1010
metaCopyright: All Rights Reserved.
1111
metaThemeColor: "#32c682"
1212
metaTwitterUser: "@notiflixjs"

src/application/helpers/utilities/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,24 +91,24 @@ const isString = (value: unknown): value is string => typeof value === 'string'
9191

9292
const isObject = (args: unknown): args is Record<string, unknown> => typeof args === 'object' || args instanceof Object;
9393

94-
const classNamesCombiner = (names: (string | null)[]): string => names.filter((name) => isString(name)).join(' ');
94+
const classNamesCombine = (names: (string | null)[]): string => names.filter((name) => isString(name)).join(' ');
9595

96-
const classNamesReplacer = (text: string): string | null => text.replace(/\s/gm, '') || null;
96+
const classNamesTrim = (text: string): string | null => text.trim() || null;
9797

9898
type TClassNamesParamAll = string | number | boolean | undefined | null;
9999
type TClassNamesParamObject = Record<string, TClassNamesParamAll>;
100100
type TClassNamesParams = TClassNamesParamAll | TClassNamesParamObject;
101101

102-
const classNames = (...params: TClassNamesParams[]): string => classNamesCombiner(
102+
const classNames = (...params: TClassNamesParams[]): string => classNamesCombine(
103103
params.map((param) => {
104104
if (isString(param)) {
105-
return classNamesReplacer(param);
105+
return classNamesTrim(param);
106106
}
107107

108108
if (isObject(param)) {
109-
return classNamesCombiner(Object.entries(param).map(([key, value]) => {
109+
return classNamesCombine(Object.entries(param).map(([key, value]) => {
110110
if (isString(key) && value === true) {
111-
return classNamesReplacer(key);
111+
return classNamesTrim(key);
112112
}
113113
return null;
114114
}));

0 commit comments

Comments
 (0)