Closed abitdodgy closed 8 years ago
The exclude option of Gibran.Tokeniser.tokenise/2 now accepts a list of any combination of regular expressions, functions, and/or strings. Previously it was limited to strings.
exclude
Gibran.Tokeniser.tokenise/2
Before:
Gibran.Tokeniser.tokenise "Oh, hello wonderful world!", exclude: ["hello"]
Now:
Gibran.Tokeniser.tokenise "Oh, hello wonderful world!", exclude: ["world", &(String.ends_with?("ful")), ~r/oh/]
The
exclude
option ofGibran.Tokeniser.tokenise/2
now accepts a list of any combination of regular expressions, functions, and/or strings. Previously it was limited to strings.Before:
Now: