From 6853146f08da382f5b5002a6a010ea3d46eeac15 Mon Sep 17 00:00:00 2001 From: Jordan Humphreys Date: Wed, 21 Nov 2018 15:38:37 -0800 Subject: [PATCH] Regexp should be pattern. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b929810..468d714 100644 --- a/README.md +++ b/README.md @@ -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"] ```