all repos — captcha @ 9d0ab4e0254bd6f8ce9aa950ebb90956b1764fc9

Go package captcha implements generation and verification of image and audio CAPTCHAs.

generate: add new line after digitSounds.
Dmitry Chestnykh dmitry@codingrobots.com
Thu, 12 May 2011 12:43:22 +0200
commit

9d0ab4e0254bd6f8ce9aa950ebb90956b1764fc9

parent

663c7c10f847d82bf9d94b1908eb0ae218814216

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M generate/main.gogenerate/main.go

@@ -86,6 +86,6 @@ fmt.Fprintf(pcm, "var digitSounds = map[string][][]byte{\n")

for _, lang := range langs { writeDigitSounds(pcm, lang) } - fmt.Fprintf(pcm, "}") + fmt.Fprintf(pcm, "}\n") writeSingle(pcm, "beep") }
M sounds.gosounds.go

@@ -4584,6 +4584,7 @@ 0x80, 0x7f, 0x80, 0x82, 0x7f, 0x80, 0x80,

}, }, } + var beepSound = []byte{ 0x80, 0x80, 0x81, 0x81, 0x7f, 0x7e, 0x7e, 0x80, 0x7e, 0x79, 0x76, 0x78, 0x81, 0x8c, 0x8f, 0x88, 0x7d, 0x78, 0x7b, 0x80, 0x7d, 0x73,