We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d96c64c commit 9994402Copy full SHA for 9994402
src/plot_utils.jl
@@ -86,7 +86,7 @@ see also `labels`
86
"""
87
label2index(x::ComponentVector, str) = label2index(labels(x), str)
88
function label2index(labs, str)
89
- idx = findall(startswith.(labs, str * r"(\.|\[)"))
+ idx = findall(startswith.(labs, Regex("\\Q$str\\E(?:(\\.|\\[))"))) #str * r"(\.|\[)"))
90
if !isempty(idx)
91
return idx
92
else
0 commit comments