adamgibbons / ics

iCalendar (ics) file generator for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Line folding breaks surrogate pairs

HeikoTheissen opened this issue · comments

while (line.length > length) {
parts.push(line.slice(0, length))
line = line.slice(length)
length = 74
}

Consider adapting this line folding method to support surrogate pairs as described in sebbo2002/ical-generator#221.