acd / lua-yaml

LibYAML binding for Lua
MIT License
21 stars 7 forks source link

IP addresses are parsed as numbers, not as strings. #5

Open subnetmarco opened 9 years ago

subnetmarco commented 9 years ago

The library has a hard time parsing IP addresses as strings, and it parses them as numbers. For example the following YAML value:

host: 127.0.0.1

is being parsed as:

{
    host = 127
}

While it should be interpreted as a string value, not an integer value. It should be:

{
    host = "127.0.0.1"
}