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"]
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"]