mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 10:35:17 +00:00
fixing style and solving merge conflicts
This commit is contained in:
@@ -7,6 +7,10 @@ const REGEX = /([$]{.*?})/g;
|
||||
export const useSyntaxHighlight = () => {
|
||||
const syntaxHighlight = useCallback((text: string, isHidden?: boolean) => {
|
||||
if (isHidden) {
|
||||
if (!text) {
|
||||
return "EMPTY";
|
||||
}
|
||||
|
||||
return text
|
||||
.split("")
|
||||
.slice(0, 200)
|
||||
|
||||
Reference in New Issue
Block a user