1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-27 06:23:53 +01:00

hotfix for textarea

This commit is contained in:
NoobishSVK
2024-03-01 14:41:49 +01:00
parent 1f8493f439
commit cd0bb66917

View File

@@ -176,7 +176,7 @@ function submitData() {
function validateAndAdd(banlist) {
var textarea = $('#ip-addresses');
var ipAddresses = textarea.val().split('\n');
var ipAddresses = textarea?.val().split('\n');
// Regular expression to validate IP address
var ipRegex = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/;