From 9506254e52fc92a6f96ba148110b94dc35043a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Tue, 29 Nov 2022 10:43:41 +0200 Subject: [PATCH] 3.0 : rename stringify.paramPropertyValue to stringify.propertyParameterValue Cf. https://github.com/kewisch/ical.js/issues/663 and https://github.com/kewisch/ical.js/pull/658 --- lib/ical/stringify.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) &&