mirror of https://github.com/grafana/grafana.git
Prometheus: Fix performance issue in editor when too many ids (#36176)
This commit is contained in:
parent
3b4916853c
commit
8aeb1cc030
|
|
@ -436,6 +436,10 @@ const tokenizer: Grammar = {
|
|||
},
|
||||
},
|
||||
],
|
||||
idList: {
|
||||
pattern: /\d+(\|\d+)+/,
|
||||
alias: 'number',
|
||||
},
|
||||
number: /\b-?\d+((\.\d*)?([eE][+-]?\d+)?)?\b/,
|
||||
operator: new RegExp(`/[-+*/=%^~]|&&?|\\|?\\||!=?|<(?:=>?|<|>)?|>[>=]?|\\b(?:${OPERATORS.join('|')})\\b`, 'i'),
|
||||
punctuation: /[{};()`,.]/,
|
||||
|
|
|
|||
Loading…
Reference in New Issue