Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kenklin committed Apr 15, 2020
1 parent 986a9e0 commit cc36f41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/JsIrSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ function createSessionInfoParser () {
return "TeamName: '" + p1.replace(/'/g, "''") + "'"
}
})
// Ignore UTF8 C2xx control characters. e.g., Capital Y diaersis glyph shown
// in iRacing client appears in fixedYamlStr UTF8 as C2 9F (Unicode \u009F),
// which is indeed a non-printable (control) character.
fixedYamlStr = fixedYamlStr.replace(/[\u0080-\u009F]/g, '')
return yaml.safeLoad(fixedYamlStr)
}
}
Expand Down

0 comments on commit cc36f41

Please sign in to comment.