mirror of
https://github.com/tiennm99/coolify.git
synced 2026-07-14 01:06:54 +00:00
chore: prepare for PR
This commit is contained in:
@@ -913,6 +913,9 @@ $schema://$host {
|
||||
return Attribute::make(
|
||||
get: function ($value) {
|
||||
return (int) preg_replace('/[^0-9]/', '', $value);
|
||||
},
|
||||
set: function ($value) {
|
||||
return (int) preg_replace('/[^0-9]/', '', (string) $value);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -922,6 +925,9 @@ $schema://$host {
|
||||
return Attribute::make(
|
||||
get: function ($value) {
|
||||
return preg_replace('/[^A-Za-z0-9\-_]/', '', $value);
|
||||
},
|
||||
set: function ($value) {
|
||||
return preg_replace('/[^A-Za-z0-9\-_]/', '', $value);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -931,6 +937,9 @@ $schema://$host {
|
||||
return Attribute::make(
|
||||
get: function ($value) {
|
||||
return preg_replace('/[^0-9a-zA-Z.:%-]/', '', $value);
|
||||
},
|
||||
set: function ($value) {
|
||||
return preg_replace('/[^0-9a-zA-Z.:%-]/', '', $value);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user