We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code:
addr := "127.0.0.1:9000" d := osc.NewStandardDispatcher() d.AddMsgHandler("/time/str", func (msg *osc.Message) { fmt.Print("-> ") fmt.Println(msg) })
Example console output:
-> /time ,f 16743.264 -> /time/str ,s 4:39:03.263 -> /time ,f 16743.36 -> /time/str ,s 4:39:03.359
The code should only match /time/str but the MsgHandler matches /time without str too. This code lines seems to be the reason: https://github.com/hypebeast/go-osc/blob/master/osc/osc.go#L146 https://github.com/hypebeast/go-osc/blob/master/osc/osc.go#L212
/time/str
/time
Escaping the address with \/ does not help. If I do this, I will get an error unknown escape sequence
\/
unknown escape sequence
Current workaround:
I would be very happy to have this issue fixed because this creates very confusing issues.
Thanks a lot. Christian
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example code:
Example console output:
The code should only match
/time/str
but the MsgHandler matches/time
without str too.This code lines seems to be the reason:
https://github.com/hypebeast/go-osc/blob/master/osc/osc.go#L146
https://github.com/hypebeast/go-osc/blob/master/osc/osc.go#L212
Escaping the address with
\/
does not help.If I do this, I will get an error
unknown escape sequence
Current workaround:
I would be very happy to have this issue fixed because this creates very confusing issues.
Thanks a lot.
Christian
The text was updated successfully, but these errors were encountered: