Use charlock_holmes instead of nkf at FetchLinkCardService (#4080)
* Specs for language detection * Use CharlockHolmes instead of NKF * Correct mistakes * Correct style * Set hint_enc instead of falling back and strip_tags * Improve specs * Add dependencies
This commit is contained in:
parent
794781d121
commit
007ab330e6
11 changed files with 78 additions and 4 deletions
|
@ -106,6 +106,7 @@ GEM
|
|||
rack (>= 1.0.0)
|
||||
rack-test (>= 0.5.4)
|
||||
xpath (~> 2.0)
|
||||
charlock_holmes (0.7.3)
|
||||
case_transform (0.2)
|
||||
activesupport
|
||||
chunky_png (1.3.8)
|
||||
|
@ -501,6 +502,7 @@ DEPENDENCIES
|
|||
capistrano-rbenv (~> 2.1)
|
||||
capistrano-yarn (~> 2.0)
|
||||
capybara (~> 2.14)
|
||||
charlock_holmes (~> 0.7.3)
|
||||
cld3 (~> 3.1)
|
||||
climate_control (~> 0.2)
|
||||
devise (~> 4.2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue