Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Salamander - APP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eirik Martin Danielsen
Salamander - APP
Commits
2b5bb5dc
Commit
2b5bb5dc
authored
4 years ago
by
Eirik Martin Danielsen
Browse files
Options
Downloads
Plain Diff
Merge branch '56-aeoaaeoa' into 'master'
Resolve "æøåÆØÅ" Closes
#56
See merge request
!59
parents
73b76c80
1c0da729
No related branches found
No related tags found
1 merge request
!59
Resolve "æøåÆØÅ"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
constants/inputRequirements.js
+1
-1
1 addition, 1 deletion
constants/inputRequirements.js
with
1 addition
and
1 deletion
constants/inputRequirements.js
+
1
−
1
View file @
2b5bb5dc
...
...
@@ -6,7 +6,7 @@ export const EMAIL_REGEX = "^[ÆØÅæøåa-zA-Z0-9_.+-]+@[ÆØÅæøåa-zA-Z0-9
export
const
PASSWORD_REGEX
=
"
^(?=.*[ÆØÅæøåA-Za-z])(?=.*
\\
d)[ÆØÅæøåA-Za-z
\\
d]{2,}$
"
;
// 9 characters, at least one letter and one number
export
const
MEASUREMENT_REGEX
=
"
^(
\\
d+(?:[
\\
.
\\
,]
\\
d{1,2})?)$
"
;
// Accepts integers and decimal numbers with comma or period. 2 decimal precision!
export
const
INTEGER_REGEX
=
"
^[0-9]*[1-9][0-9]*$
"
;
//Accepts only integers
export
const
LEGAL_LOCATION_REGEX
=
"
^[
\\
w
\\
-]+$
"
;
//Accepts trings containing legal file characters
export
const
LEGAL_LOCATION_REGEX
=
"
^[
ÆØÅæøå
\\
w
\\
-]+$
"
;
//Accepts trings containing legal file characters
/**************************************** FEEDBACK MESSAGES *****************************************/
export
const
INVALID_EMAIL_MESSAGE
=
"
Invalid email!
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment