Skip to content

Commit

Permalink
Fix: Correct detection of Hoymiles serial if it contains hex characters
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Mar 15, 2024
1 parent 0b7258d commit a0d0aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/InputSerial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit a0d0aec

Please sign in to comment.