Skip to content

Commit

Permalink
fix: fixed emoji for certain files
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 28, 2025
1 parent 782beaa commit 339fb57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const ChatMessage: FC<Props> = ({ message }) => {
""
);
function isPath(langtag: string) {
return langtag.includes("/") || langtag.includes("\\") || langtag.includes(".") && code.split(" ").length === 1;
return (langtag.includes("/") || langtag.includes("\\") || langtag.includes(".")) && langtag.split(" ").length === 1;
}
function isTool(langtag: string) {
const tools = ["ipython", "shell"];
Expand Down

0 comments on commit 339fb57

Please sign in to comment.