RitaGlushkova / immersive-go-course

Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Bug 3: Tag is not extracted correctly if more words after the tag in the note. #62

Open RitaGlushkova opened 1 year ago

RitaGlushkova commented 1 year ago

Describe the Bug The tag is not extracted correctly if more words are after the tag in the note.

How to Reproduce

go run ./cmd/test note -owner <user ID> -content "This note has a #tag and this is #tag2" - to create a note for the existing user with content: "This note has a #tag and this is #tag2"

using Postman or curl: authenticate at this user (Basic Auth) create a GET request to 127.0.0.1:8090/1/my/notes.json

Expected Behavior: Find the note you just posted and look at key "tags". We Expect tags: ["#tag", "#tag2"]

Actual behaviour: tags: ["#tag and this is", "#tag2"]