]> Cypherpunks repositories - gostls13.git/commit
path: Fix bug in Match with non-greedy stars
authorKevin Ballard <kevin@sb.org>
Thu, 25 Feb 2010 17:15:52 +0000 (09:15 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 25 Feb 2010 17:15:52 +0000 (09:15 -0800)
commit20834d644f72a327b440cb76120f020c98297024
treeb8182b80a6aafbedcc873bb2a247dfa5628eafe0
parent24ee7f799c734cf07b98bab672f5feb4ad0c6862
path: Fix bug in Match with non-greedy stars

path.Match() errors out when testing "*x" against "xxx"
because it matches the star non-greedily. Ensure that
the last chunk consumes the rest of the name.

R=r, rsc
CC=golang-dev
https://golang.org/cl/223050
src/pkg/path/match.go
src/pkg/path/match_test.go