mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
1 parent
fb56b00e81
commit
a6f8872baa
1 file changed
+1
-1
@@ -11,7 +11,7 @@ export const emojiMartToGemoji = {
|
||||
* @param str The string to convert
|
||||
* @returns The converted string
|
||||
*/
|
||||
export const snakeCase = (str: string) => str.replace(/(\w)(-)(\w)/g, "$1_$2");
|
||||
export const snakeCase = (str: string) => str.replace(/(\w)-(\w)/g, "$1_$2");
|
||||
|
||||
/**
|
||||
* A map of emoji shortcode to emoji character. The shortcode is snake cased
|
||||
|
||||
Reference in new issue
Block a user