Skip to content

Commit

Permalink
Prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jikamens committed Jan 15, 2024
1 parent b853580 commit 948cf1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/ical.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ ICAL.helpers = {
while (line.length) {
var cp = line.codePointAt(pos);
if (cp < 128) ++line_length;
else if (cp < 2048) line_length += 2; //needs 2 UTF-8 bytes
else if (cp < 2048)
line_length += 2; //needs 2 UTF-8 bytes
else if (cp < 65536) line_length += 3;
else line_length += 4; //cp is less than 1114112
if (line_length < ICAL.foldLength + 1) pos += cp > 65535 ? 2 : 1;
Expand Down

0 comments on commit 948cf1b

Please sign in to comment.