MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / validateDateParm

Function validateDateParm

codebase/sources/dhtmlxscheduler.js:18096–18102  ·  view source on GitHub ↗
(parms)

Source from the content-addressed store, hash-verified

18094 return lines;
18095 }
18096 function validateDateParm(parms) {
18097 parms.forEach(function(parm) {
18098 if (!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(parm)) {
18099 throw new Error("unsupported RDATE/EXDATE parm: " + parm);
18100 }
18101 });
18102 }
18103 function parseRDate(rdateval, parms) {
18104 validateDateParm(parms);
18105 return rdateval.split(",").map(function(datestr) {

Callers 1

parseRDateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected