Skip to content

Seperator Doesn't Affect Name #78

Description

@ogheneovo12

With Below Code i got a result of availablesly moore625
which after inspection is a combination of available and sly moore and 625
where sly moore has a space in between not truncated

 let uniqueName = uniqueNamesGenerator({
      dictionaries: [adjectives, starWars, numberDictionary],
      length: 3,
      separator: '',
      style: 'lowerCase',
    });

    let exists = await this.workspaceModel.exists({
      workspace_url: `${uniqueName}`,
    });

    while (!!exists) {
      uniqueName = uniqueNamesGenerator({
        dictionaries: [adjectives, starWars, numberDictionary],
        length: 3,
        separator: '',
        style: 'lowerCase',
      });
      exists = await this.workspaceModel.exists({ workspace_url: uniqueName });
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions