From e43e86376e25f9dc5c1c4389270adbfc199a467a Mon Sep 17 00:00:00 2001 From: Leon Sorokin Date: Tue, 31 Dec 2024 06:05:28 -0600 Subject: [PATCH] OptionsPicker: Fix matching non-latin template vars in filter (#98416) --- 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;