UNPKG

date-and-time

Version:

The simplest, most intuitive date and time library

2 lines (1 loc) 305 B
"use strict";exports.FormatterPlugin=class{},exports.ParserPlugin=class{},exports.exec=(e,t,n)=>{const l=e.exec(t)?.[0]||"";return{value:+l,length:l.length,token:n}},exports.find=(e,t,n)=>e.reduce((e,l,r)=>l.length>e.length&&!t.indexOf(l)?{value:r,length:l.length,token:n}:e,{value:-1,length:0,token:n});