Skip to content

Commit

Permalink
Merge pull request #133 from JSREI/main
Browse files Browse the repository at this point in the history
typo: fix comment typo
  • Loading branch information
aemkei authored Jan 5, 2024
2 parents 6955e96 + ce919a5 commit 82a099b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsfuck.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@
unmappped = new RegExp('[^' + unmappped + ']','g');
var unmappedCharactersCount = (input.match(unmappped) || []).length;
if (unmappedCharactersCount > 1) {
// Without this optimization one unmapped caracter has encoded length
// Without this optimization one unmapped character has encoded length
// of about 3600 characters. Every additional unmapped character adds
// 2000 to the total length. For example, the lenght of `~` is 3605,
// 2000 to the total length. For example, the length of `~` is 3605,
// `~~` is 5600, and `~~~` is 7595.
//
// The loader with replace has encoded length of about 5300 characters
Expand All @@ -280,7 +280,7 @@
// and Double quote characters (we do not need to worry about other characters
// because they are not mapped explicitly).
// The JSFuck-encoded representation of `\` is 2121 symbols,
// so esacped `\` is 4243 symbols and escaped `"` is 2261 symbols
// so escaped `\` is 4243 symbols and escaped `"` is 2261 symbols
// however the escape sequence of that characters are
// 2168 and 2155 symbols respectively, so it's more practical to
// rewrite them as escape sequences.
Expand Down

0 comments on commit 82a099b

Please sign in to comment.