From ea930b2a51bd53773fc528bd5944f34f7266e3ca Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Tue, 31 Dec 2024 14:26:05 +0200 Subject: [PATCH] [v11.4.x] OptionsPicker: Fix matching non-latin template vars in filter (#98425) OptionsPicker: Fix matching non-latin template vars in filter (#98416) (cherry picked from commit e43e86376e25f9dc5c1c4389270adbfc199a467a) Co-authored-by: Leon Sorokin --- public/app/features/variables/pickers/OptionsPicker/reducer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/variables/pickers/OptionsPicker/reducer.ts b/public/app/features/variables/pickers/OptionsPicker/reducer.ts index 5525babc55b..a3b30b93867 100644 --- a/public/app/features/variables/pickers/OptionsPicker/reducer.ts +++ b/public/app/features/variables/pickers/OptionsPicker/reducer.ts @@ -9,7 +9,7 @@ import { ALL_VARIABLE_VALUE } from '../../constants'; import { isMulti, isQuery } from '../../guard'; // https://catonmat.net/my-favorite-regex :) -const REGEXP_NON_ASCII = /[^ -~]/gm; +const REGEXP_NON_ASCII = /[^ -~]/m; export interface ToggleOption { option?: VariableOption;