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

Function validateDateParm

codebase/sources/dhtmlxscheduler.es.js:18092–18098  ·  view source on GitHub ↗
(parms)

Source from the content-addressed store, hash-verified

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

Callers 1

parseRDateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected