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.

https://results.etchellsfleet27.com/2018/2018SeasonFinal.htm.

Regards,

Matt

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

Mailtrack
Sender notified by

                [Mailtrack](https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&) 11/11/18, 22:57:22
···

Jon Eskdale
07530 112233

Skype “eskdale”

Whatever works!

Thanks.