Commit 8cf1f28f authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(captiveportal) optimize mac validation

(cherry picked from commit ababecf8)
parent 428d6770
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<allowedMACAddresses type="CSVListField"> <allowedMACAddresses type="CSVListField">
<Required>N</Required> <Required>N</Required>
<ChangeCase>lower</ChangeCase> <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> <ValidationMessage>Please enter valid mac addresses</ValidationMessage>
</allowedMACAddresses> </allowedMACAddresses>
<template type="ModelRelationField"> <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