Expand description
upstream utils/pattern.ts.
Functions§
- dict_
get DICTIONARY[key](None=undefined).- dict_
keys Object.keys(DICTIONARY).- js_len
- JS
string.length: UTF-16 code units. Use it wherever upstream compares or sorts by length. - match_
any_ pattern matchAnyPattern(dictionary): pass the dictionary keys in upstream’s key order. Longest first (stable sort, so equal lengths keep that order), joined with|, dots escaped.- repeated_
timeunit_ pattern repeatedTimeunitPattern(prefix, singleTimeunitPattern, connectorPattern).
Type Aliases§
- Dictionary
- An upstream
{ [word: string]: V }dictionary, as(key, value)pairs in upstream key order.