MCPcopy
hub / github.com/jayfk/statuspage / T

Function T

statuspage/template/statuspage.js:52–52  ·  view source on GitHub ↗
(a,b,c,d)

Source from the content-addressed store, hash-verified

50// ordinal: 'Mo'
51// callback: function () { this.month() + 1 }
52function T(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Be[a]=e),b&&(Be[b[0]]=function(){return S(e.apply(this,arguments),b[1],b[2])}),c&&(Be[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function U(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function V(a){var b,c,d=a.match(ye);for(b=0,c=d.length;c>b;b++)Be[d[b]]?d[b]=Be[d[b]]:d[b]=U(d[b]);return function(b){var e,f="";for(e=0;c>e;e++)f+=d[e]instanceof Function?d[e].call(b,a):d[e];return f}}
53// format date using native date object
54function W(a,b){return a.isValid()?(b=X(b,a.localeData()),Ae[b]=Ae[b]||V(b),Ae[b](a)):a.localeData().invalidDate()}function X(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(ze.lastIndex=0;d>=0&&ze.test(a);)a=a.replace(ze,c),ze.lastIndex=0,d-=1;return a}function Y(a,b,c){Te[a]=y(b)?b:function(a,d){return a&&c?c:b}}function Z(a,b){return h(Te,a)?Te[a](b._strict,b._locale):new RegExp($(a))}
55// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript

Callers 4

SaFunction · 0.85
xbFunction · 0.85
xcFunction · 0.85
statuspage.jsFile · 0.85

Calls 1

SFunction · 0.85

Tested by

no test coverage detected