aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Giovanini <gabrielg.desouza@gmail.com>2019-06-22 15:49:29 +0200
committerGabriel Giovanini <gabrielg.desouza@gmail.com>2019-06-22 15:49:29 +0200
commit742949d52eed9e79c70dc04a2082e72ff3ba757c (patch)
treebfd91096c37ac7905ea8d3b4ed5a234975e30234
parent3e4ca69baa068d9626d1293c75507073f7b38221 (diff)
downloadgenpass-742949d52eed9e79c70dc04a2082e72ff3ba757c.tar.gz
genpass-742949d52eed9e79c70dc04a2082e72ff3ba757c.tar.bz2
genpass-742949d52eed9e79c70dc04a2082e72ff3ba757c.zip
Fixes regex
-rw-r--r--.github/main.workflow4
-rw-r--r--test/genpass/gen_test.clj5
2 files changed, 4 insertions, 5 deletions
diff --git a/.github/main.workflow b/.github/main.workflow
index 995aac3..7d21b0c 100644
--- a/.github/main.workflow
+++ b/.github/main.workflow
@@ -8,7 +8,7 @@ action "Test" {
args = "test"
}
-action "Covergage" {
+action "Coverage" {
uses = "./.github/action"
args = "lein cloverage --junit"
needs = ["Test"]
@@ -17,7 +17,7 @@ action "Covergage" {
action "Package" {
uses = "./.github/action"
args = "package"
- needs = ["Covergage"]
+ needs = ["Coverage"]
}
action "Deploy to pages" {
diff --git a/test/genpass/gen_test.clj b/test/genpass/gen_test.clj
index 05d8994..3bc62e1 100644
--- a/test/genpass/gen_test.clj
+++ b/test/genpass/gen_test.clj
@@ -2,7 +2,7 @@
(:require [clojure.test :refer :all]
[genpass.gen :refer :all]))
-(def valid-char-regex #"^[a-zA-Z0-1\!\@\#\%\^\&\*\(\)\{\}\[\]\-\+\=\~]*$")
+(def valid-char-regex #"^[a-zA-Z0-9\!\@\#\%\^\&\*\(\)\{\}\[\]\-\+\=\~]*$")
(def not-nil? (complement nil?))
(deftest rand-char-test
@@ -23,5 +23,4 @@
(is (not-nil? (re-matches valid-char-regex (genpwd))))
(is (not-nil? (re-matches valid-char-regex (genpwd 1))))
(is (not-nil? (re-matches valid-char-regex (genpwd 1000))))
- (is (not-nil? (re-matches valid-char-regex (genpwd 4))))
- )) \ No newline at end of file
+ (is (not-nil? (re-matches valid-char-regex (genpwd 4)))))) \ No newline at end of file