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

Error when displaying multi-line replacements #3163

Open
SAugu06 opened this issue May 5, 2024 · 0 comments
Open

Error when displaying multi-line replacements #3163

SAugu06 opened this issue May 5, 2024 · 0 comments

Comments

@SAugu06
Copy link

SAugu06 commented May 5, 2024

In the context of my master thesis, I try to come up with new mutators specifically for Angular web applications. One of my mutator transformed this code:
new UntypedFormControl('', { nonNullable: true, validators: [Validators.maxLength(80)] })

into this replacement string:
"new UntypedFormControl('', {\n nonNullable: true\n })"

This replacement, however, leads to this error when clicking on it in the html report:
Uncaught Error: Cannot find corresponding opening tag for </span>

This seems like a bug to me. For some strange reason, if insert two whitespaces at the end of the first line of the replacement string (before the first \n), this error does not occur. The following replacement string thus works:
"new UntypedFormControl('', { \n nonNullable: true\n })"

I just wanted to let you know about this behavior in case this really is a bug. Have a nice day!

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

1 participant