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:
Róbert Kiss
2018-01-03 21:06:08 +01:00
committed by László Monda
parent 13f064229f
commit bbce1e0e0f
8 changed files with 33 additions and 10 deletions

View File

@@ -1 +1,2 @@
export * from './html-helper';
export * from './validators';

View File

@@ -0,0 +1,3 @@
export function isValidName(name: string): boolean {
return name && name.trim().length > 0;
}