Skip to content

Commit

Permalink
Merge pull request #7254 from butzopower/deckbuilder-bracket-names
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke authored Dec 26, 2023
2 parents b78f57a + 6ee61c7 commit b144127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljs/nr/deckbuilder.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"Parse a single line of a deck string"
[line]
(let [clean (s/trim line)
[_ qty-str card-name _ card-params] (re-matches #"(\d+)[^\s]*\s+([^\[]+)(\[(.*)\])?" clean)]
[_ qty-str card-name card-params] (re-matches #"(\d+)[^\s]*\s+(([^\[]+)|(\[(.*)\]))" clean)]
(if (and qty-str
(not (js/isNaN (str->int qty-str)))
card-name)
Expand Down

0 comments on commit b144127

Please sign in to comment.