Commit ababecf8 authored by Ad Schellevis's avatar Ad Schellevis

(captiveportal) optimize mac validation

parent f173a3be
......@@ -65,7 +65,7 @@
<allowedMACAddresses type="CSVListField">
<Required>N</Required>
<ChangeCase>lower</ChangeCase>
<mask>/^([0-9a-fA-F:,])*/u</mask>
<mask>/^((([0-9a-fA-F]{2}:){5}([0-9a-fA-F]{2})([,]){0,1}))*/u</mask>
<ValidationMessage>Please enter valid mac addresses</ValidationMessage>
</allowedMACAddresses>
<template type="ModelRelationField">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment