mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: add more quoting to avoid invalid terms
This commit is contained in:
@@ -447,7 +447,7 @@ describe Search do
|
||||
|
||||
it 'can parse complex strings using ts_query helper' do
|
||||
str = " grigio:babel deprecated? "
|
||||
str << "page page on Atmosphere](https://atmospherejs.com/grigio/babel)xxx: aaa'\"bbb"
|
||||
str << "page page on Atmosphere](https://atmospherejs.com/grigio/babel)xxx: aaa.js:222 aaa'\"bbb"
|
||||
|
||||
ts_query = Search.ts_query(str, "simple")
|
||||
Post.exec_sql("SELECT to_tsvector('bbb') @@ " << ts_query)
|
||||
|
||||
Reference in New Issue
Block a user