Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
91bbb67e
Commit
91bbb67e
authored
2 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
プロフィールの文字数制限を緩和
parent
f368bce9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
packages/backend/src/models/entities/User.ts
+1
-1
1 addition, 1 deletion
packages/backend/src/models/entities/User.ts
with
2 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
91bbb67e
...
...
@@ -89,6 +89,7 @@ You should also include the user name that made the change.
-
Server: Judge instance block by endsWith @tamaina
-
Server: improve note scoring for featured notes @CyberRex0
-
Server: アンケート選択肢の文字数制限を緩和 @syuilo
-
Server: プロフィールの文字数制限を緩和 @syuilo
-
Server: add rate limits for some endpoints @syuilo
-
Server: improve stats api performance @syuilo
-
Server: improve nodeinfo performance @syuilo
...
...
This diff is collapsed.
Click to expand it.
packages/backend/src/models/entities/User.ts
+
1
−
1
View file @
91bbb67e
...
...
@@ -232,6 +232,6 @@ export type CacheableUser = CacheableLocalUser | CacheableRemoteUser;
export
const
localUsernameSchema
=
{
type
:
'
string
'
,
pattern
:
/^
\w{1,20}
$/
.
toString
().
slice
(
1
,
-
1
)
}
as const
;
export
const
passwordSchema
=
{
type
:
'
string
'
,
minLength
:
1
}
as const
;
export
const
nameSchema
=
{
type
:
'
string
'
,
minLength
:
1
,
maxLength
:
50
}
as const
;
export
const
descriptionSchema
=
{
type
:
'
string
'
,
minLength
:
1
,
maxLength
:
500
}
as const
;
export
const
descriptionSchema
=
{
type
:
'
string
'
,
minLength
:
1
,
maxLength
:
1
500
}
as const
;
export
const
locationSchema
=
{
type
:
'
string
'
,
minLength
:
1
,
maxLength
:
50
}
as const
;
export
const
birthdaySchema
=
{
type
:
'
string
'
,
pattern
:
/^
([
0-9
]{4})
-
([
0-9
]{2})
-
([
0-9
]{2})
$/
.
toString
().
slice
(
1
,
-
1
)
}
as const
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment