namespace eval ::algos::tclposting {
variable log [logger::init algos::tclposting]
proc intake {uri text data} {
variable log
if {![regexp -- [join {
{\s[Tt]cl(/[Tt]k)?(\.|,|\s)}
{^[Tt]cl(/[Tt]k)?(,|\s)}
{\s[Tt]cl(/[Tt]k)?$}
{\sTk(\.|,|\s)}
{^Tk(,|\s)}
{\sTk$}
{\.tcl}
{tclsh}
{tcl-lang}
{tcltk}
{tcllib}
{tklib}
{tcl\.tk}
{#tcllang}} | ] $text]} \
{
return {}
}
if {[regexp -nocase -- [join {
{Title Tk}
{Comic-Con Tk}} | ] $text]} \
{
return {}
}
return [dict get $data commit record createdAt]
}
}