Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/words/words.js
Normal file
2
test/words/words.js
Normal file
@ -0,0 +1,2 @@
|
||||
const words = (str, pattern = /[^a-zA-Z-]+/) => str.split(pattern).filter(Boolean);
|
||||
module.exports = words;
|
||||
Reference in New Issue
Block a user