about summary refs log tree commit diff stats
path: root/gemini.tlv
diff options
context:
space:
mode:
Diffstat (limited to 'gemini.tlv')
-rw-r--r--gemini.tlv4
1 files changed, 4 insertions, 0 deletions
diff --git a/gemini.tlv b/gemini.tlv
index 5600b3d..dfcd373 100644
--- a/gemini.tlv
+++ b/gemini.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: