Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a runaway regex engine test, just for good measure

  • Loading branch information...
commit d1e06aa86d652162694c9610e5ea75f2e5842f74 1 parent 2b5e9fe
@mzsanford mzsanford authored
Showing with 6 additions and 0 deletions.
  1. +1 −0  README.md
  2. +5 −0 extract.yml
View
1  README.md
@@ -44,6 +44,7 @@ If you are creating a new twitter-text library in a different programming langua
* v1.4.4 - 2011-08-05 [ Get tag v1.4.4 ]
* [FIX] Support ş (U+015F) in hashtags
* [FIX] Support latin accents in URL paths
+ * [FIX] Add a test for a common cause for runaway regex engines
* v1.4.3 - 2011-07-13 [ Git tag v1.4.3 ]
* [FIX] Japanese autolink including long vowel mark (chouon)
View
5 extract.yml
@@ -325,6 +325,11 @@ tests:
text: "test http://twitter.c_o_m"
expected: []
+ # A common cause of runaway regex engines.
+ - description: "Extract a URL with a ton of trailing periods"
+ text: "Test a ton of periods http://example.com/path.........................................."
+ expected: ["http://example.com/path"]
+
urls_with_indices:
- description: "Extract a URL"
text: "text http://google.com"
Please sign in to comment.
Something went wrong with that request. Please try again.