From 29d53c21acc746c9e0f20211cb665e731a13bf82 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 18 Mar 2022 10:37:29 -0700 Subject: graphviz: don't interpret substrings as regexes --- toot-toot.tlv | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toot-toot.tlv') diff --git a/toot-toot.tlv b/toot-toot.tlv index 8f224c4..5d90789 100644 --- a/toot-toot.tlv +++ b/toot-toot.tlv @@ -60,6 +60,10 @@ > return s:sub(1,pos-1)..s:sub(pos+1) >end > + >function string.pos(s, sub) + > return string.find(s, sub, 1, true) -- plain=true to disable regular expressions + >end + > >-- TODO: backport utf-8 support from Lua 5.3 - __teliva_timestamp: original debugy: -- cgit 1.4.1-2-gfad0