Skip to content

Commit 5314036

Browse files
committed
fix: update bluesky service url validation for subdomains
- Modifies URL validation regex to properly handle multiple subdomain segments - Ensures domain segments start with alphanumeric characters - Removes unnecessary IP address pattern Fixes #952
1 parent 3a1a750 commit 5314036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/nestjs-libraries/src/integrations/social/bluesky.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class BlueskyProvider extends SocialAbstract implements SocialProvider {
155155
key: 'service',
156156
label: 'Service',
157157
defaultValue: 'https://bsky.social',
158-
validation: `/^(https?:\\/\\/)?((([a-zA-Z0-9\\-_]{1,256}\\.[a-zA-Z]{2,6})|(([0-9]{1,3}\\.){3}[0-9]{1,3}))(:[0-9]{1,5})?)(\\/[^\\s]*)?$/`,
158+
validation: `/^(https?:\\/\\/)?([a-zA-Z0-9][a-zA-Z0-9\\-_]*\\.)+[a-zA-Z]{2,}|([0-9]{1,3}\\.){3}[0-9]{1,3})(:[0-9]{1,5})?(\\/[^\\s]*)?$/`,
159159
type: 'text' as const,
160160
},
161161
{

0 commit comments

Comments
 (0)