Skip to content

Commit 2ea9950

Browse files
committed
Resolve conflict with newly added string.isUpper
1 parent 7052758 commit 2ea9950

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/docopt.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ proc parse_atom(tokens: TokenStream, options: var seq[Option]): seq[Pattern] =
499499
parse_long(tokens, options)
500500
elif (token.starts_with "-") and token notin ["-", "--"]:
501501
parse_shorts(tokens, options)
502-
elif (token.starts_with "<") and (token.ends_with ">") or token.is_upper():
502+
elif (token.starts_with "<") and (token.ends_with ">") or
503+
util.is_upper(token):
503504
@[Pattern(argument(tokens.move()))]
504505
else:
505506
@[Pattern(command(tokens.move()))]

0 commit comments

Comments
 (0)