@@ -242,10 +242,7 @@ class _DBModule extends CoreClass {
// Playlist
this.schemas.playlist
.path("displayName")
- .validate(
- displayName => isLength(displayName, 1, 32) && regex.ascii.test(displayName),
- "Invalid display name."
- );
+ .validate(displayName => isLength(displayName, 1, 96), "Invalid display name.");
this.schemas.playlist.path("createdBy").validate(createdBy => {
this.models.playlist.countDocuments({ createdBy }, (err, c) => !(err || c >= 10));
@@ -1,7 +1,7 @@
import mongoose from "mongoose";
export default {
- displayName: { type: String, min: 2, max: 32, required: true },
+ displayName: { type: String, min: 2, max: 96, required: true },
isUserModifiable: { type: Boolean, default: true, required: true },
songs: [
{