• Rob Pike's avatar
    regexp: fix prefix bug. · 15cb7ed3
    Rob Pike authored
    After a prefix match, the old code advanced the length of the
    prefix.  This is incorrect since the full match might begin
    in the middle of the prefix. (Consider "aaaab+" matching
    "aaaaaab").
    
    Fixes #1373
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/3795044
    15cb7ed3
find_test.go 14.4 KB