spreak icon indicating copy to clipboard operation
spreak copied to clipboard

Format string regexp doesn't seem to handle everything go fmt package does

Open ptman opened this issue 4 months ago • 0 comments

Summary

var re = regexp.MustCompile("%{(\w+)}[.\d]*[xsvTtbcdoqXUeEfFgGp]")

This doesn't seem to allow square brackets "[]" as used for reordering arguments in fmt.Sprintf

ptman avatar Oct 23 '25 10:10 ptman