From 5ae3f9b3d99c0a83067c572d3b7fc57df9216426 Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Wed, 12 Jun 2024 11:04:27 +0530 Subject: [PATCH] Updated the tresult with info/err message #393 Fixed #327 --- tools/jsnap2py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/jsnap2py b/tools/jsnap2py index 8baa9bae..860a6fdb 100755 --- a/tools/jsnap2py +++ b/tools/jsnap2py @@ -27,7 +27,7 @@ def msg_change(x): data = (data[0],data[1][1:]) if data[0] in ['id', 'ID']: data = (data[0], int(data[1])-1) - msg = "{{%s_%s}}" % (data) + msg = "{{%s_%s}}" % (data) elif data[0] in ['PRE', 'POST']: msg = '{{%s["%s"]}}' % (data) else: @@ -120,7 +120,7 @@ else: '\$id\.\d|\$pre\s?/?\.?/\s?[\w-]+/?[\w-]*|\$post\s?/?\.?/\s?[\w-]+/?[\w-]*|,\s?\.{0,2}/?\.{0,2}/?[\w-]+/?[\w-]*/?[\w-]*', data.group(2), re.I) - inputs = map(msg_change, inputs) + inputs = list(map(msg_change, inputs)) to_format = re.search('"(.*?)"', obj.group(2)) if len(inputs) > 0: if to_format: