Skip to content

Commit 1a85ddd

Browse files
committed
fix the regexp, tests are passing
1 parent e3cda66 commit 1a85ddd

File tree

1 file changed

+1
-1
lines changed
  • clojure/src/main/clj/cucumber/runtime

1 file changed

+1
-1
lines changed

clojure/src/main/clj/cucumber/runtime/clj.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
table, for example: reading | \"1\" | 1 | we should intepret 1 as an int
151151
and \"1\" as a string. This is used by kv-table->map and table->rows."
152152
[string]
153-
(if (re-matches #"[0-9]+\.?[0-9]+" string)
153+
(if (re-matches #"^:.*|\d+(\.\d+)?" string)
154154
(read-string string)
155155
(str/replace string #"\"" "")))
156156

0 commit comments

Comments
 (0)