Refactor and regroup urlHelpers utils (#6462)
* fix: refactor urlHelpers * fix: move to /plugins/slack/shared * fix: remove .babelrc * fix: remove Outline class * fix: Slack -> SlackUtils * fix: UrlHelper class
This commit is contained in:
10
shared/utils/UrlHelper.ts
Normal file
10
shared/utils/UrlHelper.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export class UrlHelper {
|
||||
public static github = "https://www.github.com/outline/outline/issues";
|
||||
public static twitter = "https://twitter.com/getoutline";
|
||||
public static contact = "https://www.getoutline.com/contact";
|
||||
public static developers = "https://www.getoutline.com/developers";
|
||||
public static changelog = "https://www.getoutline.com/changelog";
|
||||
|
||||
public static SLUG_URL_REGEX = /^(?:[0-9a-zA-Z-_~]*-)?([a-zA-Z0-9]{10,15})$/;
|
||||
public static SHARE_URL_SLUG_REGEX = /^[0-9a-z-]+$/;
|
||||
}
|
||||
Reference in New Issue
Block a user