Add whole-words? option for generated patterns
authorJoe Littlejohn <joelittlejohn@gmail.com>
Wed, 3 May 2017 08:50:16 +0000 (09:50 +0100)
committerJoe Littlejohn <joelittlejohn@gmail.com>
Tue, 30 May 2017 19:25:15 +0000 (20:25 +0100)
commitb486d91a767a5b3d9112a045cc51846ebff9fa0b
treec92b30fe54cfe2c368b049bde6f7a17977c2b0ab
parentc61f82d7ef6c7e1b072babd73087f11c34f6d4c3
Add whole-words? option for generated patterns

This option causes patterns to require a word boundary on either end of
the match. For instance a pattern built from:

  [ "foo" "bar" "baz" ]

Will create a match against the following strings:

  "foo is a metasyntactic variable"
  "sometimes we use baz"

but will not create a match against the following:

  "food and nutrition"
  "clubs and bars"
src/cljx/frak.cljx
test/frak_test.clj