Skip to content

Commit 6fa0868

Browse files
committed
spelling: ansi
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
1 parent 4e00467 commit 6fa0868

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/logs/parser.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// #region ANSII section
1+
// #region ANSI section
22

33
const ESC = "\u001b";
44
const BrightClassPostfix = "-br";
@@ -7,7 +7,7 @@ const BrightClassPostfix = "-br";
77
export const URLRegex = /([{([]*https?:\/\/[a-z0-9]+(?:-[a-z0-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
5454
enum Resets {
@@ -163,7 +163,7 @@ interface IAnsiEscapeCodeState {
163163

164164
export 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[] {

0 commit comments

Comments
 (0)