-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed as not planned
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.4.2
Python version
3.8
Steps to Reproduce
- Create a Site with Name = "Foo (Bar)" and Slug = "foo-bar"
- Perform a default global search or explicit Partial match search for the string "(Bar"
- Receive error
Expected Behavior
The Site should have been found and the string appropriately highlighted in the result. I believe this is caused by the use of re.split in utilities.utils.highlight_string, as I could not find where the highlight string is being escaped for non-regex searches.
Observed Behavior
The following error is received:
<class 're.error'>
missing ), unterminated subpattern at position 0
Python version: 3.8.10
NetBox version: 3.4.2
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application