Aria label#1131
Conversation
|
Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖 Please select which version do you want to release:
And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.
|
|
Beep boop 🤖 I noticed you didn't make any changes at the
In order to keep track, I'll create an issue if you decide now is not a good time
|
|
| return false | ||
| } | ||
| if (/[^A-z0-9-]/.test(modifier)) { |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 1 year ago
To fix the problem, we need to correct the regular expression range to match only the intended characters. Specifically, we should replace the range A-z with A-Za-z to ensure that only uppercase and lowercase letters are matched. This change will prevent unintended characters from being included in the match.
- Update the regular expression on line 58 to use the correct range
A-Za-z. - No additional methods, imports, or definitions are needed to implement this change.
| @@ -57,3 +57,3 @@ | ||
|
|
||
| if (/[^A-z0-9-]/.test(modifier)) { | ||
| if (/[^A-Za-z0-9-]/.test(modifier)) { | ||
| console.error( |
| import SUBSCRIBE_NEWSLETTER from './mutations/subscribeNewsletter.graphql' | ||
|
|
||
| const EMAIL_REGEX = | ||
| /^[A-z0-9+_-]+(?:\.[A-z0-9+_-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?$/ |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range
Copilot Autofix
AI about 1 year ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
| import SUBSCRIBE_NEWSLETTER from './mutations/subscribeNewsletter.graphql' | ||
|
|
||
| const EMAIL_REGEX = | ||
| /^[A-z0-9+_-]+(?:\.[A-z0-9+_-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?$/ |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range
Copilot Autofix
AI about 1 year ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
| import SUBSCRIBE_NEWSLETTER from './mutations/subscribeNewsletter.graphql' | ||
|
|
||
| const EMAIL_REGEX = | ||
| /^[A-z0-9+_-]+(?:\.[A-z0-9+_-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?$/ |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range
Copilot Autofix
AI about 1 year ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
| import SUBSCRIBE_NEWSLETTER from './mutations/subscribeNewsletter.graphql' | ||
|
|
||
| const EMAIL_REGEX = | ||
| /^[A-z0-9+_-]+(?:\.[A-z0-9+_-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?$/ |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range
Copilot Autofix
AI about 1 year ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
| import SUBSCRIBE_NEWSLETTER from './mutations/subscribeNewsletter.graphql' | ||
|
|
||
| const EMAIL_REGEX = | ||
| /^[A-z0-9+_-]+(?:\.[A-z0-9+_-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?$/ |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range
Copilot Autofix
AI about 1 year ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
| import SUBSCRIBE_NEWSLETTER from './mutations/subscribeNewsletter.graphql' | ||
|
|
||
| const EMAIL_REGEX = | ||
| /^[A-z0-9+_-]+(?:\.[A-z0-9+_-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?$/ |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range
Copilot Autofix
AI about 1 year ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
| import SUBSCRIBE_NEWSLETTER from './mutations/subscribeNewsletter.graphql' | ||
|
|
||
| const EMAIL_REGEX = | ||
| /^[A-z0-9+_-]+(?:\.[A-z0-9+_-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?$/ |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range
Copilot Autofix
AI about 1 year ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
| import SUBSCRIBE_NEWSLETTER from './mutations/subscribeNewsletter.graphql' | ||
|
|
||
| const EMAIL_REGEX = | ||
| /^[A-z0-9+_-]+(?:\.[A-z0-9+_-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?$/ |
Check warning
Code scanning / CodeQL
Overly permissive regular expression range
Copilot Autofix
AI about 1 year ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
What problem is this solving?
ADA compliance for missing aria-label
How to test it?
With the theme linked see if the Container has an aria-label
Workspace