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

Parenthesis causing filter Error #643

Closed
TomSmith27 opened this issue Oct 13, 2016 · 0 comments
Closed

Parenthesis causing filter Error #643

TomSmith27 opened this issue Oct 13, 2016 · 0 comments

Comments

@TomSmith27
Copy link

Expected and actual behavior

image

Steps to reproduce the problem

  1. ... Type in the value (-1.2 into a filter box
  2. Using the code var n = tree.fancytree('getTree').filterNodes(match);
    with match = "(-1.2" you recieve this error

Uncaught SyntaxError: Invalid regular expression: /(-1.1/: Unterminated group

I have fixed the problem locally but not sure what the intended behaviour was this is the "working" version
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants