Skip to content

Commit

Permalink
feat: add two more symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Jul 19, 2024
1 parent 03cd990 commit 79a466a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ export const characterMap: CharacterMap = {
"<=": { transform: "⇐" },
"=>": { transform: "⇒" },
"--": { transform: "–" },
"!=": { transform: "≠" },
"===": { transform: "≡" },
};

export function getCharacterRegex(): RegExp {
return new RegExp("(->|<-|<->|<=>|<=|=>|--)", "g");
return new RegExp("(->|<-|<->|<=>|<=|=>|--|!=|===)", "g");
}

export default class SymbolsPrettifier extends Plugin {
Expand Down

0 comments on commit 79a466a

Please sign in to comment.