You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected output? What do you see instead?
Pedrosa is mentioned at the end of the first half, should be colored black
as he is part of déchaînés.
What version of the product are you using? On what operating system?
Foxtrick 0.3.65, XP.
Please provide any additional information below.
Seems playing 5-5-0 (no forwards) makes the player name extraction fail to
extract the first player in the formation (Pedrosa).
This is probably true for all formations with no people in one of the 4
parts of the formation (keeper/defender/midfielder/forward).
Hattrick adds a - after the last player in the formation for this match,
this makes matchDetailPlayerColoring extract an empty string as the first
playername in the playersOfTeamB array. index has reached 11 before coming
to Pedrosa.
Could probably (?) be amended by parsing the string left to right (with
indexOf instead of lastIndexOf), or by adding a if(newPlayerName=="")
index--; "hack".
The text was updated successfully, but these errors were encountered:
Original issue 4 created by larsts on 2008-05-25T21:31:34.000Z:
What steps will reproduce the problem?
(https://www.hattrick.org/goto.ashx?path=/Common/matchdetails.aspx%3FmatchID%3D164631299)
What is the expected output? What do you see instead?
Pedrosa is mentioned at the end of the first half, should be colored black
as he is part of déchaînés.
What version of the product are you using? On what operating system?
Foxtrick 0.3.65, XP.
Please provide any additional information below.
Seems playing 5-5-0 (no forwards) makes the player name extraction fail to
extract the first player in the formation (Pedrosa).
This is probably true for all formations with no people in one of the 4
parts of the formation (keeper/defender/midfielder/forward).
Hattrick adds a - after the last player in the formation for this match,
this makes matchDetailPlayerColoring extract an empty string as the first
playername in the playersOfTeamB array. index has reached 11 before coming
to Pedrosa.
Could probably (?) be amended by parsing the string left to right (with
indexOf instead of lastIndexOf), or by adding a if(newPlayerName=="")
index--; "hack".
The text was updated successfully, but these errors were encountered: