Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow escape of dot in instance name #179
Allow dots in instance names as per rfc 6763. According to rfc6763 instance names are allowed to contain any characters, including dots. They recommend escaping them if concatenating all the parts internally.
See section 4.3:
Also see this from avahi:
The reason for this requested support is that the European ITxPT public transport standard is using an additional extra field in the instance containing the separator dot.
While the loop with the separate fields could use a string split with a regexp instead this pull request preserves the code flow as it currently stands.
A complete change should involve checking for (replacing) a double backslash as well. Maybe simply changing line 128 with an additional replace: