Skip to content
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

Cannot update a milestone title to a new phrase containing special characters #498

Open
aminlatifi opened this issue May 11, 2021 · 3 comments
Assignees

Comments

@aminlatifi
Copy link
Member

I get error once I want to update a milestone title with a phrase which had parenthesis. It happens on checking milestone new title is unique in its campaign.
I reached to a solution like this in searching, both front-end and back-end

title
          .replace(/([-/\\^$*+?.()|[\]{}])/g, '\\$&')
          .replace(/^\s+|\s+$|\s+(?=\s)/g, '')}\\s*`,

But I am not sure the above solution works and should be tested.

@mohammadranjbarz
Copy link
Collaborator

@aminlatifi
Cant reproduce it, I changed my trace's name multiple times including parenthesis and it was ok

@mohammadranjbarz mohammadranjbarz added the can't reproduce We are unable to reproduce the described behaviour. label Sep 12, 2021
@aminlatifi aminlatifi changed the title Cannot update a milestone title to with a new phrase containing special characters Cannot update a milestone title to a new phrase containing special characters Sep 12, 2021
@aminlatifi
Copy link
Member Author

I had created the Test parenthesis (1) before
image

@aminlatifi
Copy link
Member Author

I had updated the regex in backend, but forgot to update the front. @mohammadranjbarz Please make it happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants