Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usernames can be 25 characters long on DeSo. Update vendored library accordingly #508

Merged
merged 1 commit into from
Nov 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/vendor/twitter-text-3.1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
// make sure cash tags contain at least one non-numeric character
var cashtag = /(?=\w*[a-z_]\w*)[a-z0-9_]{1,24}/i;
var cashtag = /(?=\w*[a-z_]\w*)[a-z0-9_]{1,25}/i;

// Copyright 2018 Twitter, Inc.
// Licensed under the Apache License, Version 2.0
Expand Down Expand Up @@ -2460,8 +2460,8 @@
// Copyright 2018 Twitter, Inc.
var validMentionOrList = regexSupplant('(#{validMentionPrecedingChars})' + // $1: Preceding character
'(#{atSigns})' + // $2: At mark
'([a-zA-Z0-9_]{1,24})' + // $3: Screen name
'(/[a-zA-Z][a-zA-Z0-9_-]{0,24})?', // $4: List (optional)
'([a-zA-Z0-9_]{1,25})' + // $3: Screen name
'(/[a-zA-Z][a-zA-Z0-9_-]{0,25})?', // $4: List (optional)
{
validMentionPrecedingChars: validMentionPrecedingChars,
atSigns: atSigns
Expand Down