-
Notifications
You must be signed in to change notification settings - Fork 0
0.0.0-rc.12 #654
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
0.0.0-rc.12 #654
Conversation
…directory. Fixed incorrect updated_version being populated if the versions are same.
…ing the performance 3x.
…in. Also, added limit to index searches.
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
|
|
||
| if (found) { | ||
| //eslint-disable-next-line | ||
| var data = found[0].replaceAll('\"', '"'); |
Check warning
Code scanning / CodeQL
Replacement of a substring with itself Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 11 months ago
To fix the problem, we need to ensure that the replacement string correctly escapes the double quotes. Instead of using '\"', which is interpreted as just a double quote, we should use '\\\"' to properly escape the double quotes. This change will ensure that the replacement operation correctly replaces double quotes with escaped double quotes.
-
Copy modified line R119
| @@ -118,3 +118,3 @@ | ||
| //eslint-disable-next-line | ||
| var data = found[0].replaceAll('\"', '"'); | ||
| var data = found[0].replaceAll('"', '\\"'); | ||
| //eslint-disable-next-line |
|
|
||
| if (found) { | ||
| //eslint-disable-next-line | ||
| var data = found[0].replaceAll('\"', '"'); |
Check warning
Code scanning / CodeQL
Replacement of a substring with itself Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 11 months ago
To fix the problem, we need to correct the escape sequence in the replacement string. Instead of replacing '"' with '\"', we should replace it with '\\"'. This will correctly escape the double quotes in the string.
- Locate the line where the replacement is happening.
- Change the replacement string from
'\"'to'\\"'.
-
Copy modified line R309
| @@ -308,3 +308,3 @@ | ||
| //eslint-disable-next-line | ||
| var data = found[0].replaceAll('\"', '"'); | ||
| var data = found[0].replaceAll('"', '\\"'); | ||
| //eslint-disable-next-line |
|
|
||
| if (found) { | ||
| //eslint-disable-next-line | ||
| var data = found[0].replaceAll('\"', '"'); |
Check warning
Code scanning / CodeQL
Replacement of a substring with itself Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 11 months ago
To fix the problem, we need to replace the double quotes with an escaped version. This can be done by changing the replacement string from '\"' to '\\"'. This will ensure that double quotes are properly escaped in the string.
- Locate the line where the replacement is being made.
- Change the replacement string from
'\"'to'\\"'. - Ensure that the rest of the code remains unchanged to maintain existing functionality.
-
Copy modified line R3083
| @@ -3082,3 +3082,3 @@ | ||
| //eslint-disable-next-line | ||
| var data = found[0].replaceAll('\"', '"'); | ||
| var data = found[0].replaceAll('"', '\\"'); | ||
| //eslint-disable-next-line |
|
|
||
| if (found) { | ||
| //eslint-disable-next-line | ||
| var data = found[0].replaceAll('\"', '"'); |
Check warning
Code scanning / CodeQL
Replacement of a substring with itself Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 11 months ago
To fix the problem, we need to replace the double quotes in the string with an escaped version. This can be done by changing the replacement string from '\"' to '\\"'. This ensures that the double quotes are properly escaped in the resulting string.
-
Copy modified line R12167
| @@ -12166,3 +12166,3 @@ | ||
| //eslint-disable-next-line | ||
| var data = found[0].replaceAll('\"', '"'); | ||
| var data = found[0].replaceAll('"', '\\"'); | ||
| //eslint-disable-next-line |
No description provided.