Skip to content

Commit

Permalink
Regexp should be pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Humphreys committed Nov 21, 2018
1 parent 673233c commit 6853146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ You can pass your own criteria as a Ruby regular expression to split your string
For example, if you wanted to include numbers, you can override the regular expression:
```ruby
counter = WordsCounted.count("Numbers 1, 2, and 3", regexp: /[\p{Alnum}\-']+/)
counter = WordsCounted.count("Numbers 1, 2, and 3", pattern: /[\p{Alnum}\-']+/)
counter.tokens
#=> ["Numbers", "1", "2", "and", "3"]
```
Expand Down

0 comments on commit 6853146

Please sign in to comment.