This repository was archived by the owner on Dec 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 8
8
9
9
# IDEs
10
10
# =======
11
- .idea /* .iml
12
- .idea /modules.xml
13
- .idea /workspace.xml
14
- .idea /encodings.xml
15
- .idea /dataSources.xml
16
- .idea /dataSources.local.xml
17
- .idea /dataSources /
11
+ .idea /
18
12
19
13
# Binaries for programs and plugins
20
14
# =======
Original file line number Diff line number Diff line change 1
1
package ecms_go_inputfilter
2
2
3
3
import (
4
- "fmt"
5
4
ecms_validator "github.com/extensible-cms/ecms-go-validator"
6
5
"regexp"
7
6
)
@@ -19,9 +18,6 @@ func init() {
19
18
nameValidatorOps .Pattern = regexp .MustCompile ("^[a-zA-Z][a-zA-Z\\ s'\" ]{4,54}$" )
20
19
NameValidator := ecms_validator .RegexValidator (nameValidatorOps )
21
20
22
- nametestRslt , nametestMsgs := NameValidator ("abcd" )
23
- fmt .Printf ("nametestMsgs: %v; nametest: %v" , nametestMsgs , nametestRslt )
24
-
25
21
NameInput = NewInput ("name" )
26
22
NameInput .Required = true
27
23
NameInput .RequiredMessage = "Name is required."
Original file line number Diff line number Diff line change 1
1
module github.com/extensible-cms/ecms-go-inputfilter
2
+
3
+ require github.com/extensible-cms/ecms-go-validator v0.0.0-20190826014204-921ba0375ffd
Original file line number Diff line number Diff line change
1
+ github.com/extensible-cms/ecms-go-validator v0.0.0-20190826014204-921ba0375ffd h1:tfMF1LFq1DoYWpMr4H4MU528mGaN9bEuWmclSXuB99o =
2
+ github.com/extensible-cms/ecms-go-validator v0.0.0-20190826014204-921ba0375ffd /go.mod h1:ReaogoAmdmwSiLWl1D1YTR/BKa78VzHwGGyAVL1wxyY =
You can’t perform that action at this time.
0 commit comments