Skip to content

Commit 8c0d023

Browse files
thisRaptorimarijnh
authored andcommitted
Shorter regex for problem marijnh#7.
1 parent 1e34bbe commit 8c0d023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/solutions/09_1_regexp_golf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ verify(/\w{7,}/,
2424
["hottentottententen"],
2525
["no", "hotten totten tenten"]);
2626

27-
verify(/\b[a-df-z]+\b/i,
27+
verify(/\b[^\We]+\b/i,
2828
["red platypus", "wobbling nest"],
2929
["earth bed", "learning ape"]);
3030

0 commit comments

Comments
 (0)