# Not escaping for regex in "search node"

**URL:** <https://forum.xod.io/t/not-escaping-for-regex-in-search-node/122>\
**Category:** Uncategorized\
**Created:** [October 7, 2017, 4:18pm UTC](https://forum.xod.io/t/not-escaping-for-regex-in-search-node/122 "2017-10-07T16:18:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![awgrover](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@awgrover](https://forum.xod.io/u/awgrover)\
**Post date:** [October 7, 2017, 4:18pm UTC](https://forum.xod.io/t/not-escaping-for-regex-in-search-node/122/1 "2017-10-07T16:18:13Z")

</div>

1. Not escaping in regex

- try typing a ‘+’ in the “search nodes” box.

- observe error in dev tools log: `Uncaught SyntaxError: Invalid regular expression: /+/: Nothing to repeat`

- Presumably interpolating into a regex without escaping

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [October 9, 2017, 9:30am UTC](https://forum.xod.io/t/not-escaping-for-regex-in-search-node/122/2 "2017-10-09T09:30:10Z")

</div>

Nice catch! Thanks. Issued it at [https://github.com/xodio/xod/issues/810](https://github.com/xodio/xod/issues/810)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [October 13, 2017, 2:44pm UTC](https://forum.xod.io/t/not-escaping-for-regex-in-search-node/122/3 "2017-10-13T14:44:07Z")

</div>

Closed on October 13, 2017, 2:44pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
