token.match is not a function in onEdit()

I'm getting the error: "token.match is not a function" while using "onEdit()". I think the reason is that the function registers a listener for every "message" event and tries to run a regex match function on message.data assuming is a string [1]. Although the messages of the plugin adapter contain strings only there can be other messages and the data attribute can have any type [2]. This should be handled gracefully.

[1] https://gitlab.com/coyoapp/plugins/adapter/-/blob/v0.1.6/src/lib/adapter/edit-adapter.ts#L43

[2] https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/data

Edited by Lars Kreisz