import fix in buildLinkField
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { ArrayField, Field, GroupField } from 'payload'
|
||||
|
||||
import { rowLabel } from 'src/modules/admin-ui/rowLabel.js'
|
||||
import { rowLabel } from '../admin-ui/rowLabel.js'
|
||||
|
||||
export type LinkAppearance = 'link' | 'primary' | 'secondary'
|
||||
|
||||
@@ -18,7 +18,7 @@ export type BuildLinkFieldOptions = {
|
||||
uploadTo?: string
|
||||
}
|
||||
|
||||
const URL_PATTERN = /^(https?:\/\/|mailto:|tel:|#)/
|
||||
const URL_PATTERN = /^(?:https?:\/\/|mailto:|tel:|#)/
|
||||
|
||||
type SiblingWithType = { type?: string } | undefined
|
||||
|
||||
|
||||
Reference in New Issue
Block a user