Merge branch 'improve-auth-context-provider'

# Conflicts:
#	src/constants/values.ts
This commit is contained in:
Myzel394 2023-01-13 21:31:35 +01:00
commit 879693f680

View File

@ -1,13 +1,13 @@
import {AliasNote} from "~/server-types"
export const MASTER_PASSWORD_LENGTH = 4096
export const MASTER_PASSWORD_LENGTH = 1024
export const LOCAL_REGEX = /^[a-zA-Z0-9!#$%&*+/=?^_`.{|}~-]{1,64}$/g
export const URL_REGEX =
/((http[s]*:\/\/)?[a-z0-9-%\/\&=?\.]+\.[a-z]{2,4}\/?([^\s<>\#%"\,\{\}\\|\\\^\[\]`]+)?)/gi
export const DEFAULT_ALIAS_NOTE: AliasNote = {
version: "1.0",
data: {
createdOn: null,
createdOn: "instance",
createdAt: null,
creationContext: "web",
personalNotes: "",