mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Escape backslashes in regexps in Loki label browser (#45809, #47039). * Escape values in Loki Query Builder. * Escape more values in Loki Query Builder.
This commit is contained in:
committed by
GitHub
parent
b0f41b9772
commit
f00ffb190c
@@ -92,7 +92,12 @@ export const TypeaheadItem: React.FC<Props> = (props: Props) => {
|
||||
highlightParts={item.highlightParts}
|
||||
></PartialHighlighter>
|
||||
) : (
|
||||
<Highlighter textToHighlight={label} searchWords={[prefix ?? '']} highlightClassName={highlightClassName} />
|
||||
<Highlighter
|
||||
textToHighlight={label}
|
||||
searchWords={[prefix ?? '']}
|
||||
autoEscape={true}
|
||||
highlightClassName={highlightClassName}
|
||||
/>
|
||||
)}
|
||||
</li>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user