mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix error message for variable names (#72580)
This commit is contained in:
parent
a47577c8e8
commit
0f402347aa
@ -46,7 +46,7 @@ export const changeVariableName = (identifier: KeyedVariableIdentifier, newName:
|
||||
}
|
||||
|
||||
if (!newName.match(/^\w+$/)) {
|
||||
errorText = 'Only word and digit characters are allowed in variable names';
|
||||
errorText = 'Only word characters are allowed in variable names';
|
||||
}
|
||||
|
||||
const variables = getVariablesByKey(uid, getState());
|
||||
|
@ -674,7 +674,7 @@ describe('shared actions', () => {
|
||||
key,
|
||||
changeVariableNameFailed({
|
||||
newName: '#constant!',
|
||||
errorText: 'Only word and digit characters are allowed in variable names',
|
||||
errorText: 'Only word characters are allowed in variable names',
|
||||
})
|
||||
)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user