d3-flame-graph
d3-flame-graph copied to clipboard
ignore case on search
@spiermar I would like to work on this issue. Could you please provide more description?
Sure @rohchakr. Should be a simple feature. Today, search is done via RegEx and is case sensitive. Having an option to ignore case on search would be beneficial.
With the current default search, if I have a frame named "Test" for example, and I type "test" on search, it would not match because of the uppercase T.
We could add an option to the chart to enable this feature and just lower the case of case of both search and frame names on comparison if enabled.
Thanks a lot. Getting started! Please assign this issue to me.
@spiermar Created a PR #154 for validating the approach. Please guide further.
I am thinking of having a checkbox just beside the search button to choose whether to make case-sensitive search or not.
It could be just a library option. No need to update the examples, just document it on the README.
@spiermar Created a new PR #155 Introduced an optional argument for the function searchMatch and made necessary updates in the readme file. Please review.