Closed JoshMcguigan closed 5 years ago
Thanks! I do have trimed the returns before implementing the tokenizer. With the built-in tokenizer with deafult setting, any whitespaces including \r \n will be removed as stop words. But it's a good practice not to rely on any internal behavior and to always handle the standard input by ourselves.
The standard behavior of
read_line
leaves the newline from the user pressing the enter key. This PR strips that newline before performing the search.