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

[WIP] ZK-5861: Select a date in December causes an invalid result under loc… #3244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DevChu
Copy link
Contributor

@DevChu DevChu commented Dec 24, 2024

…ale pt

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 5 changed files in this pull request and generated 1 comment.

Files not reviewed (3)
  • zkdoc/release-note: Language not supported
  • zktest/src/main/webapp/test2/B102-ZK-5861.zul: Language not supported
  • zktest/src/main/webapp/test2/config.properties: Language not supported

@@ -89,8 +89,10 @@ function removeLiteral(str: string, literals: string[]): string {
if (literals.length === 0) {
return str;
}
var pattern = new RegExp(literals.join('|'), 'g');
return str.replace(pattern, ' ');
for (let literal of literals) {
Copy link
Preview

Copilot AI Dec 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new implementation assumes literals are wrapped in single quotes in the input string, which is a behavior change from the original regex approach. Verify the expected input format and ensure this change is covered by tests.

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
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

Successfully merging this pull request may close these issues.

1 participant