~aleteoryx/tclfeed-bsky

ref: e5aec4d82ae051b61acc801add365b108b6d51d5 tclfeed-bsky/src/algos/tclposting.tcl -rw-r--r-- 401 bytes
e5aec4d8Aleteoryx multiple algos, file reorg 30 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
namespace eval ::algos::tclposting {
  variable log [logger::init algos::tclposting]
  proc intake {uri text data} {
    variable log
    if {[regexp -- {\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 [dict get $data commit record createdAt]
    }
    return {}
  }
}