Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions luci-app-oaf/luasrc/view/admin_network/advance.htm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


function validateLanIfname(lanIfname) {
const regex = /^[a-zA-Z0-9-]{2,8}$/;
const regex = /^[a-zA-Z0-9.-]{2,8}$/;
return regex.test(lanIfname);
}

Expand All @@ -42,7 +42,7 @@
const autoLoadEngineSwitch = document.getElementById('autoLoadEngineSwitch').checked;

if (!validateLanIfname(lanIfname)) {
alert('<%:Invalid LAN interface name. Please ensure it is no more than 8 characters long and contains only letters, numbers, and -.%>');
alert('<%:Invalid LAN interface name. Please ensure it is no more than 8 characters long and contains only letters, numbers, dot, and -.%>');
return;
}

Expand Down