Skip to content

api throws REGEX error when I try to query for a field with a parenthesis in it #4

@clarknoah

Description

@clarknoah

Unhandled Rejection (Neo4jError): Invalid Regex: Unclosed group near index 7
(?i)(.*
▶ 4 stack frames were collapsed.
nodeListQuery
src/services/api.js:21
18 | text:(?i)${queryText}.*
19 | }
20 |

21 | return driver.session().run(query,params)
| ^ 22 | .then(results=>{
23 |
24 | return results.records.map((val)=>{
View compiled
ManifestedPerception.onChange
src/components/ManifestedPerception/ManifestedPerception.js:106
103 | mPerception.setExistingPerceptionTimes(mPerception.properties.dateOfPerception.value);
104 | }
105 | if (text.length > 0 && switchLabel==false) {
106 | api.nodeListQuery(A_${this.state.label}, this.state.queryKey, text).then((res) => {
| ^ 107 | // console.log(res);
108 | this.setState({
109 | abstractPerceptions: res,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions