mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-01-03 03:18:47 +01:00
Fix: Correct detection of Hoymiles serial if it contains hex characters
This commit is contained in:
@@ -52,7 +52,7 @@ export default defineComponent({
|
||||
this.formatShow = "info";
|
||||
|
||||
// Contains only numbers
|
||||
if (/^[\d]{12}$/.test(serial)) {
|
||||
if (/^1{1}[\dA-F]{11}$/.test(serial)) {
|
||||
this.model = serial;
|
||||
this.formatHint = this.$t('inputserial.format_hoymiles');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user