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

Function ya

codebase/dhtmlxscheduler.es.js:5873–5889  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

5871 return n && (i.tzid = n), i.dtstart = Fe(s), i;
5872}
5873function ya(e) {
5874 if (!(e = e.replace(/^\s+|\s+$/, "")).length)
5875 return null;
5876 var i = /^([A-Z]+?)[:;]/.exec(e.toUpperCase());
5877 if (!i)
5878 return nt(e);
5879 var t = i[1];
5880 switch (t.toUpperCase()) {
5881 case "RRULE":
5882 case "EXRULE":
5883 return nt(e);
5884 case "DTSTART":
5885 return Me(e);
5886 default:
5887 throw new Error("Unsupported RFC prop ".concat(t, " in ").concat(e));
5888 }
5889}
5890function nt(e) {
5891 var i = Me(e.replace(/^RRULE:/i, ""));
5892 return e.replace(/^(?:RRULE|EXRULE):/i, "").split(";").forEach(function(t) {

Callers

nothing calls this directly

Calls 2

MeFunction · 0.85
ntFunction · 0.70

Tested by

no test coverage detected