Chris,
> On May 28, 2020, at 4:59 PM, Rizzo, Christopher <Christopher.Rizzo at xerox.com> wrote:
>> Trying to determine the cause of these failures without much luck. I tried to create my own printer-supply test to isolate each of the regex's, but still getting the failure:
>> EXPECTED: printer-alert WITH-ALL-VALUES /^code=[A-Za-z]+(;index=[0-9]+|;severity=[A-Za-z]+|;training=[A-Za-z]+|;group=[A-Za-z]+|;groupindex=[0-9]+|;location=[0-9]+|;time=[0-9]+){0,};?$/
> GOT: printer-alert="code=tonerLow;index=2;severity=warningBinaryChangeEvent;training=trained;group=markerSupplies;groupindex=2;location=956700;time=1590695059"
There is no trailing semicolon...
> EXPECTED: printer-supply WITH-ALL-VALUES /^(type=[A-Za-z]+;|maxcapacity=-{0,1}[0-9]+;|level=-{0,1}[0-9]+;|index=[0-9]+;|markerindex=[0-9]+;|class=[A-Za-z]+;|unit=[A-Za-z]+;|colorantindex=[0-9]+;|colorantrole=[A-Za-z]+;|colorantname=[-_.A-Za-z0-9]+;|coloranttonality=[0-9]+;){0,}$/
> GOT: printer-supply="type=toner;maxcapacity=5300;level=4717;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=4;colorantrole=process;colorantname=black;coloranttonality=256"
Ditto...
________________________
Michael Sweet