FIX: Search for whole URLs wasn't working. (PR #10190)


We should probably use another string delimiter :wink:

      expect(Search.execute('"test post with a URL"').posts).to eq([post])
      expect(Search.execute('""').posts).to eq([post])
      expect(Search.execute('" with a URL"').posts).to eq([post])

or, the more “in-the-face”

      expect(Search.execute(%{"test post with a URL"}).posts).to eq([post])
      expect(Search.execute(%{""}).posts).to eq([post])
      expect(Search.execute(%{" with a URL"}).posts).to eq([post])

looks pretty safe to me … merge at will

Merged in