diff --git a/lib/ical/stringify.js b/lib/ical/stringify.js index 12415968..ea0f5f60 100644 --- a/lib/ical/stringify.js +++ b/lib/ical/stringify.js @@ -122,13 +122,13 @@ stringify.property = function(property, designSet, noFold) { if (multiValue && Array.isArray(value)) { value = value.map(function(val) { val = stringify._rfc6868Unescape(val); - val = stringify.paramPropertyValue(val, paramDesign.multiValueSeparateDQuote); + val = stringify.propertyParameterValue(val, paramDesign.multiValueSeparateDQuote); return val; }); value = stringify.multiValue(value, multiValue, "unknown", null, designSet); } else { value = stringify._rfc6868Unescape(value); - value = stringify.paramPropertyValue(value); + value = stringify.propertyParameterValue(value); } line += ';' + paramName.toUpperCase() + '=' + value; @@ -208,12 +208,12 @@ stringify.property = function(property, designSet, noFold) { * If any of the above are present the result is wrapped * in double quotes. * - * @function ICAL.stringify.paramPropertyValue + * @function ICAL.stringify.propertyParameterValue * @param {String} value Raw property value * @param {boolean} force If value should be escaped even when unnecessary * @return {String} Given or escaped value when needed */ -stringify.paramPropertyValue = function(value, force) { +stringify.propertyParameterValue = function(value, force) { if (!force && (value.indexOf(',') === -1) && (value.indexOf(':') === -1) &&