Fix error message for variable names (#72580)

This commit is contained in:
Fabrizio 2023-08-14 11:34:54 +02:00 committed by GitHub
parent a47577c8e8
commit 0f402347aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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',
})
)
);