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

Regex patterns not enforced in browser #56203

Closed
FutureTense opened this issue Sep 13, 2021 · 2 comments
Closed

Regex patterns not enforced in browser #56203

FutureTense opened this issue Sep 13, 2021 · 2 comments

Comments

@FutureTense
Copy link

The problem

As I was writing this, the “your topic is similar to…” nag screen showed someone else had the same problem. Turns out it was me! But the problem still remains.

  1. From the Helpers screen, I click “add helper”, then click “Text”
  2. I name the field youbigdummy I miss Redd Foxx, God rest his smutty soul
  3. In the regex pattern field I enter [a-fA-F0-9]* and then click Create
  4. From the helpers screen again, I filter on “dummy”, and see my new string and click on it. I click the hamburger icon at the top right and see the value is (empty value).
  5. I click the field and can enter anything, specifically things that violate the regex. Such as ?!%!!,.*)
  6. Like the previous step, I can enter that value into a lovelace form, like:

type: entities
entities:
  - entity: input_text.youbigdummy
show_header_toggle: false

What needs to be done to enforce the regex pattern?

What is version of Home Assistant Core has the issue?

Home Assistant 2021.9.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

n/a

Link to integration documentation on our website

https://www.home-assistant.io/integrations/input_text/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@probot-home-assistant
Copy link

input_text documentation
input_text source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (input_text) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@github-actions github-actions bot added the stale label Oct 13, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant