From 95db61c24ecd7d64ecf58a9687adcf0b0e2654ab Mon Sep 17 00:00:00 2001 From: Aref Shafaei <aref.shafaei@gmail.com> Date: Mon, 8 Jan 2024 18:18:55 -0800 Subject: [PATCH] fix an issue in one of handlebars examples --- docs/user-docs/handlebars.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-docs/handlebars.md b/docs/user-docs/handlebars.md index ca7788b9..5dfda907 100644 --- a/docs/user-docs/handlebars.md +++ b/docs/user-docs/handlebars.md @@ -1051,12 +1051,12 @@ In this section we go over the helpers that can be used to do boolean operations Using the `regexMatch` function you can check whether a given value matches the given regular expression. The regular expression syntax that Javascript supports is a bit different from other languages, please refer to [MDN regular expressions document](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) for more information. ``` +{{#if (regexMatch value "jpg|png" )}} .. content {{/if}} ``` ### Logical Helpers -{{#if (regexMatch value "jpg|png" )}} - And (`and`)