-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
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
Implemented XEP-0106 JID Escaping Transformations for Matrix room IDs #91
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thank you! One thing to mention is that it would be nice to see some test cases written up as unit tests. It should be easy because the function is static and hasno dependencies.
@Half-Shot
Do you want me to write unit tests? |
Yes please :) |
@Half-Shot |
Would you mind commuting your changes anyway, so I can take a look. |
Just noticed, could you remove the |
… and added unit tests for the same
89915a2
to
b01024b
Compare
@Half-Shot |
@Half-Shot |
@rakaar, @Half-Shot: Any news? |
Implemented XEP-0106 Escaping transformations as mentioned in #83 as per this document in the file
src/MatrixRoomHandler.ts
. This is done using a function by nameXEP0106_APPLY_ESCAPING_TRANSFORMATIONS
at the top of the file after imports.To ensure, nothing is broken, I have run the command
npm run test
, which resulted in all tests passed.