Skip to content

Commit

Permalink
chore: typos (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Jan 20, 2023
1 parent 9beeba7 commit 8e5d7f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Instead, use the functions that you need directly.

## Acknowledgements

This libary wouldn't be possible without the work of these individuals. Thanks
This library wouldn't be possible without the work of these individuals. Thanks
to

- [@mathiasbynens](https://github.com/mathiasbynens) for his explanations
Expand Down
2 changes: 1 addition & 1 deletion src/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function encodeHTMLTrieRe(regExp: RegExp, str: string): string {
next = next.v;
}

// We might have a tree node without a value; skip and use a numeric entitiy.
// We might have a tree node without a value; skip and use a numeric entity.
if (next !== undefined) {
ret += next;
lastIdx = i + 1;
Expand Down
2 changes: 1 addition & 1 deletion src/escape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function getEscaper(
result += data.substring(lastIdx, match.index);
}

// We know that this chararcter will be in the map.
// We know that this character will be in the map.
result += map.get(match[0].charCodeAt(0))!;

// Every match will be of length 1
Expand Down

0 comments on commit 8e5d7f6

Please sign in to comment.