step.py: Fix pv name parser

Mon, 28 Mar 2022 14:07:14 +0200

author
Bernhard.Kuner@bessy.de
date
Mon, 28 Mar 2022 14:07:14 +0200
changeset 2444
cd42eaf7e67c
parent 2443
00b586de625e
child 2445
c3cc6d783c58

step.py: Fix pv name parser
Ignore-this: 63051716d3cc2242627fe0828c646f3d27d7cbe81f7d91ecf0ef18c7cabb072f7f85d233cf801d30

lib/python/bii_scripts/step.py file | annotate | diff | comparison | revisions
--- a/lib/python/bii_scripts/step.py	Fri Mar 25 22:20:17 2022 +0100
+++ b/lib/python/bii_scripts/step.py	Mon Mar 28 14:07:14 2022 +0200
@@ -944,7 +944,7 @@
             return
 
 # compile regexp once
-regPvName = re.compile('^\s*([\d\w\.:]+)(.*)$') # 'pvName EXPR, e.g 'MDIZ3T5G:lt50' '< 0.1'
+regPvName = re.compile('^\s*(.*?)([<=>!].*)') # 'pvName EXPR, e.g 'MDIZ3T5G:lt50' '< 0.1'
 def parseFuncParameter(funcPar):
     """
     Parse a next/break function parameter to be used by MeasThread object

mercurial