mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: merge conflict
This commit is contained in:
1 parent
610a82dc42
commit
bfcdbafcd2
1 file changed
+10
-8
@@ -1,20 +1,22 @@
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* Capitalizes the first letter of a string
|
||||
=======
|
||||
* Given a string, returns the singular version of it,
|
||||
* by removing the trailing 's'.
|
||||
>>>>>>> main
|
||||
*
|
||||
* @export
|
||||
* @param {string} str
|
||||
* @returns {string}
|
||||
*/
|
||||
<<<<<<< HEAD
|
||||
export function capitalize(str: string): string {
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
=======
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a string, returns the singular version of it,
|
||||
* by removing the trailing 's'.
|
||||
*
|
||||
* @export
|
||||
* @param {string} str
|
||||
* @returns {string}
|
||||
*/
|
||||
export function singular(str: string): string {
|
||||
return str.replace(/s$/, '');
|
||||
>>>>>>> main
|
||||
}
|
||||
Reference in new issue
Block a user