Skip to content

Commit

Permalink
Also break on dash and slash
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasoberschweiber committed Oct 17, 2015
1 parent c481660 commit 422877c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/worte/tokenizer.rb
Expand Up @@ -4,7 +4,8 @@

FS = Regexp.new('[[:blank:]]+')

BREAK = ['(', ')', '[', ']', '<', '>', '!', '?', ',', '.', ';', ':', '.', '"', "'"]
BREAK = ['(', ')', '[', ']', '<', '>', '!',
'?', ',', '.', ';', ':', '.', '"', "'", '-', '/']

module Worte
class Tokenizer
Expand Down
2 changes: 1 addition & 1 deletion lib/worte/version.rb
@@ -1,3 +1,3 @@
module Worte
VERSION = '0.0.3'
VERSION = '0.0.4'
end

0 comments on commit 422877c

Please sign in to comment.