Compare commits

..

4 Commits

Author SHA1 Message Date
juliaroesschen
d4102c5d04 fix typo in route update modal (#397)
Some checks failed
build and push / build_n_push (push) Has been cancelled
2024-07-04 15:05:57 +02:00
pascal-fischer
e78c35bdbe Fix DNS modal to allow one char domains (#393)
* update regex to allow one char domains in DNS routing modal

* update regex
2024-07-04 10:50:37 +02:00
juliaroesschen
6ebee98695 Fix typo in Network Routes dialogue (#395) 2024-07-04 10:48:49 +02:00
juliaroesschen
f4b28d5f40 Fix typo in routes modal 2024-06-28 11:38:39 +02:00
3 changed files with 6 additions and 6 deletions

View File

@@ -488,7 +488,7 @@ export function RouteModalContent({
<div>
<HelpText>
Assign a peer group with Linux machines to be used as
{exitNode ? " exit nodes." : "routing peers."}
{exitNode ? " exit nodes." : " routing peers."}
</HelpText>
<PeerGroupSelector
max={1}
@@ -577,9 +577,9 @@ export function RouteModalContent({
<div className={cn("flex justify-between")}>
<div>
<Label>Metrics</Label>
<Label>Metric</Label>
<HelpText className={"max-w-[200px]"}>
Lower metrics indicating higher priority routes.
A lower metric indicates a higher priority route.
</HelpText>
</div>

View File

@@ -396,9 +396,9 @@ function RouteUpdateModalContent({ onSuccess, route, cell }: ModalProps) {
)}
<div className={cn("flex justify-between")}>
<div>
<Label>Metrics</Label>
<Label>Metric</Label>
<HelpText className={"max-w-[200px]"}>
Lower metrics indicating higher priority routes.
A lower metric indicates a higher priority route.
</HelpText>
</div>

View File

@@ -42,7 +42,7 @@ export const sleep = (ms: number) => {
export const validator = {
isValidDomain: (domain: string) => {
const unicodeDomain =
/^(?!.*\s)(\.?[a-zA-Z0-9\u00A1-\uFFFF](?!.*\s$)(?!.*\.$)(?:(?!-)[a-zA-Z0-9\u00A1-\uFFFF-]{1,63}(?<!-)\.){0,126}(?!-)[a-zA-Z0-9\u00A1-\uFFFF-]{1,63}(?<!-))$/u;
/^(?!.*\.\.)(?!.*\.$)(?!.*\s)(?:(?!-)(?!.*--)[a-zA-Z0-9\u00A1-\uFFFF-]{1,63}(?<!-)\.)+(?!-)(?!.*--)[a-zA-Z0-9\u00A1-\uFFFF-]{2,63}$/u;
try {
const minMaxChars = [1, 255];
const isValidDomainLength =