Problem shading the discarded races

Hello Jon,

I am having a problem getting the new discarded race shading script to shade all the discarded races. Any ideas? Attached is a screen shot and a link to the published html file. There should be 3 races per entry discarded and shaded green. You will notice starting with position #8 of the scoresheet the script shades only 2 of the races with the green.



Hi Matt,

To be honest I don’t understand why that happens but if you remove the “g” from

This line

var discardText = /\b)/g;

so that it becomes

var discardText = /\b)/;

It fixes it

see attached

Sender notified by

                [Mailtrack]( 11/11/18, 22:57:22

Jon Eskdale
07530 112233

Skype “eskdale”

Whatever works!