track-extension
track-extension copied to clipboard
Do not mangle project names on Asana
Relevant integration (if any):
https://app.asana.com
🐛 Describe the bug
Project names with trailing whitespace or certain characters escaped are getting mangled and we're not able to match the related project from the list of projects.
Expected behaviour
Project names aren't mangled and they can match existing, related projects.
Steps to reproduce
- create a project in Asana that has trailing whitespace
- start a TE in one of the related pages
- the project name isn't matched
Other details or context
https://github.com/toggl/toggl-button/blob/947a730b38520ced7995720aab4bf2480b44999e/src/scripts/content/asana.js#L12
https://github.com/toggl/toggl-button/blob/947a730b38520ced7995720aab4bf2480b44999e/src/scripts/content/asana.js#L47-L49
https://github.com/toggl/toggl-button/blob/947a730b38520ced7995720aab4bf2480b44999e/src/scripts/content/asana.js#L60
https://github.com/toggl/toggl-button/blob/947a730b38520ced7995720aab4bf2480b44999e/src/scripts/content/asana.js#L141