File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // #region ANSII section
1+ // #region ANSI section
22
33const ESC = "\u001b" ;
44const BrightClassPostfix = "-br" ;
@@ -7,7 +7,7 @@ const BrightClassPostfix = "-br";
77export const URLRegex = / ( [ { ( [ ] * h t t p s ? : \/ \/ [ a - z 0 - 9 ] + (?: - [ a - z 0 - 9 ] + ) * \. [ ^ \s < > | ' " , ] { 2 , } ) / gi;
88
99/**
10- * Regex for matching ANSII escape codes
10+ * Regex for matching ANSI escape codes
1111 * \u001b - ESC character
1212 * ?: Non-capturing group
1313 * (?:\u001b[) : Match ESC[
@@ -48,7 +48,7 @@ const _ansiEscapeCodeRegex = /(?:\u001b\[)(?:[?|#])?(?:(?:[0-9]{1,3})?(?:(?:;[0-
4848 * Esc[48;2;<r>;<g>;<b> To set the background color
4949 * Where r,g and b must be between 0-255
5050 */
51- // #endregion ANSII section
51+ // #endregion ANSI section
5252
5353// #region commands
5454enum Resets {
@@ -163,7 +163,7 @@ interface IAnsiEscapeCodeState {
163163
164164export class Parser {
165165 /**
166- * Parses the content into ANSII states
166+ * Parses the content into ANSI states
167167 * @param content content to parse
168168 */
169169 public getStates ( content : string ) : IAnsiEscapeCodeState [ ] {
You can’t perform that action at this time.
0 commit comments