bdring / FluidNC

The next generation of motion control firmware
Other
1.61k stars 383 forks source link

Wrap config value as string if it contains a colon #1271

Closed breiler closed 3 months ago

breiler commented 3 months ago

This is a work-around for the issue #1270

The $Config/Dump command does not wrap values as a string if it contains "special characters" such as : which will result in an invalid YAML.

The proper way should probably be to check if the string contains a " which would wrap the string with '. If it contains a ' it would wrap with ". And it should probably also check for other special characters. But this will solve the immediate problem.