From ca495dfd9efd4fa19cc45b32f413343eb9aa1f86 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Thu, 20 Mar 2025 21:36:38 +0100 Subject: [PATCH] Fixing list index starting at 1 --- spf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spf.py b/spf.py index a3f468e..8c8b907 100755 --- a/spf.py +++ b/spf.py @@ -111,7 +111,7 @@ class SPFInterpreter(lark.visitors.Interpreter): def list_get(self, el): (left, right) = self.visit_children(el) - return left[right] + return left[right-1] def expression(self, el):