[DRE-commits] [ruby-twitter-text] 01/02: Add patch for hashtag detection - ported from upstream
Balasankar C
balasankarc-guest at moszumanska.debian.org
Tue Jun 27 12:34:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
balasankarc-guest pushed a commit to branch master
in repository ruby-twitter-text.
commit 39f648ee15477942d5489ec248e3dbd55503cc74
Author: Balasankar C <balasankarc at autistici.org>
Date: Tue Jun 27 17:58:52 2017 +0530
Add patch for hashtag detection - ported from upstream
---
debian/patches/4001-fix-hashtag-detection.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
2 files changed, 18 insertions(+)
diff --git a/debian/patches/4001-fix-hashtag-detection.patch b/debian/patches/4001-fix-hashtag-detection.patch
new file mode 100644
index 0000000..ddcda07
--- /dev/null
+++ b/debian/patches/4001-fix-hashtag-detection.patch
@@ -0,0 +1,17 @@
+Description: Port hashtag detection bugfix from upstream
+Author: Sumit Shah <shah at twitter.com>
+Applied-Upstream: https://patch-diff.githubusercontent.com/raw/twitter/twitter-text/pull/181
+Last-Update: 2017-06-27
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/lib/twitter-text/regex.rb
++++ b/lib/twitter-text/regex.rb
+@@ -153,7 +153,7 @@
+ HASHTAG_LETTERS_NUMERALS_SET = "[#{HASHTAG_LETTERS_NUMERALS}]"
+ HASHTAG_LETTERS_SET = "[#{HASHTAG_LETTERS_AND_MARKS}]"
+
+- HASHTAG = /(\A|[^&#{HASHTAG_LETTERS_NUMERALS}])(#|#)(?!\ufe0f|\u20e3)(#{HASHTAG_LETTERS_NUMERALS_SET}*#{HASHTAG_LETTERS_SET}#{HASHTAG_LETTERS_NUMERALS_SET}*)/io
++ HASHTAG = /(\A|\ufe0e|\ufe0f|[^&#{HASHTAG_LETTERS_NUMERALS}])(#|#)(?!\ufe0f|\u20e3)(#{HASHTAG_LETTERS_NUMERALS_SET}*#{HASHTAG_LETTERS_SET}#{HASHTAG_LETTERS_NUMERALS_SET}*)/io
+
+ REGEXEN[:valid_hashtag] = /#{HASHTAG}/io
+ # Used in Extractor for final filtering
diff --git a/debian/patches/series b/debian/patches/series
index 5f1d77e..f60f441 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
2001-fix-gemspec.patch
3001-fix-path.patch
+4001-fix-hashtag-detection.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-twitter-text.git
More information about the Pkg-ruby-extras-commits
mailing list