-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7689 from mattermost/release-2.11-7613
- Loading branch information
Showing
8 changed files
with
304 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | ||
// See LICENSE.txt for license information. | ||
|
||
export const ID_PATH_PATTERN = '[a-z0-9]{26}'; | ||
export const PLUGIN_ID_PATH_PATTERN = '[a-zA-Z0-9-_.]{3,190}'; | ||
|
||
// This should cover: | ||
// - Team name (lowercase english characters, numbers or -) | ||
// - Two ids separated by __ (userID__userID) | ||
export const TEAM_NAME_PATH_PATTERN = '[a-z0-9\\-_]+'; | ||
|
||
// This should cover: | ||
// - Channel name | ||
// - Channel ID | ||
// - Group Channel Name (40 length UID) | ||
// - DM Name (userID__userID) | ||
// - Username prefixed by a @ | ||
// - User ID | ||
export const IDENTIFIER_PATH_PATTERN = '[@a-zA-Z\\-_0-9][@a-zA-Z\\-_0-9.]*'; |
Oops, something went wrong.