From 7c88be28868cbe24d916f149b5aff1a731718200 Mon Sep 17 00:00:00 2001 From: Michael Mior Date: Fri, 24 Feb 2023 21:38:48 -0500 Subject: [PATCH] Fix typo in blog post on intent whitespace (#1696) --- blog/2023-02-03-responses.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/2023-02-03-responses.md b/blog/2023-02-03-responses.md index f8853ce4..3515dfc5 100644 --- a/blog/2023-02-03-responses.md +++ b/blog/2023-02-03-responses.md @@ -34,4 +34,4 @@ Response templates are in the [Jinja2 format](https://www.home-assistant.io/docs The second change comes from [hassil](https://github.com/home-assistant/hassil), the parser for our [intent template syntax](/docs/voice/intent-recognition/template-sentence-syntax/). In addition to an 8-10x speed-up in parsing, whitespace inside templates is taken literally. -Previously, a template like `light(s | ing)` would match both "light" and "lighting". Now, "light" and "light ing" would be matched instead due to the extra space around `|`. The correct template would be `light(s|ing)` +Previously, a template like `light(s | ing)` would match both "lights" and "lighting". Now, "light s" and "light ing" would be matched instead due to the extra space around `|`. The correct template would be `light(s|ing)`