1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00
This commit is contained in:
Per Sandström
2015-09-25 22:01:01 +02:00
parent 793e3ec6c3
commit 0c720f7274

View File

@@ -51,7 +51,7 @@ export default new Polymer({
computed: 'validateCode(enteredCode, codeFormat)', computed: 'validateCode(enteredCode, codeFormat)',
}, },
}, },
validateCode: function(code, format) { validateCode(code, format) {
const re = new RegExp(format); const re = new RegExp(format);
if (format === null) { if (format === null) {
return true; return true;