fix(user-config): Validate device, keymap, and macro names (#543)
* fix(user-config): Validate device, keymap, and macro names * fix device name renaming
This commit is contained in:
committed by
László Monda
parent
13f064229f
commit
bbce1e0e0f
@@ -1 +1,2 @@
|
||||
export * from './html-helper';
|
||||
export * from './validators';
|
||||
|
||||
3
packages/uhk-web/src/app/util/validators.ts
Normal file
3
packages/uhk-web/src/app/util/validators.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function isValidName(name: string): boolean {
|
||||
return name && name.trim().length > 0;
|
||||
}
|
||||
Reference in New Issue
Block a user