Skip to content

Commit

Permalink
3.0 : rename stringify.paramPropertyValue to stringify.propertyParame…
Browse files Browse the repository at this point in the history
…terValue

Cf. kewisch#663 and kewisch#658
  • Loading branch information
dilyanpalauzov committed Apr 14, 2024
1 parent 458ba7c commit 9506254
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ical/stringify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) &&
Expand Down

0 comments on commit 9506254

Please sign in to comment.