Skip to content

Disable dynamic typing for CSV values#8

Open
kudlav wants to merge 1 commit intoTriLinder:mainfrom
kudlav:csv-dynamic-typing
Open

Disable dynamic typing for CSV values#8
kudlav wants to merge 1 commit intoTriLinder:mainfrom
kudlav:csv-dynamic-typing

Conversation

@kudlav
Copy link

@kudlav kudlav commented Jan 26, 2026

fixes #7

KORDIS agency put Color type as a number with a trailing zeros into the rotues.txt without quotes:

L36D99,99,36,"Komín, sídliště - Česká",800,008033,FFFFFF

Parse option dynamicTyping: true caused that value 008033 was parsed as number 8033, which was later transformed into an invalid color #8033.

This PR propose to parse all values as a string and then cast only the intended columns to a number.

image

Acceptance

  • Firefox on Windows 11
  • Android 16 on Google Pixel 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing vehicle triangle for some routes

1 participant