duckling/Duckling/PhoneNumber
Bartosz Nitka ec39c21593 Make the regexp less dangerous
Summary:
The current regexp matches sequences of numbers of unbounded
length with lots of backtracking. Since phone numbers
are shorter than X=20 characters we can put a bound
on every currently unbounded match.

Additionally we can use groups that don't capture, to
avoid marshalling data that we won't need.

Reviewed By: JonCoens

Differential Revision: D4706862

fbshipit-source-id: 39ca9bb
2017-03-14 12:19:12 -07:00
..
Corpus.hs Initial commit 2017-03-08 10:33:56 -08:00
Rules.hs Make the regexp less dangerous 2017-03-14 12:19:12 -07:00
Tests.hs Initial commit 2017-03-08 10:33:56 -08:00
Types.hs Initial commit 2017-03-08 10:33:56 -08:00