~pete-woods/hud/tweak-search-parameters

« back to all changes in this revision

Viewing changes to service/ItemStore.cpp

  • Committer: Pete Woods
  • Date: 2014-02-27 12:55:13 UTC
  • Revision ID: pete.woods@canonical.com-20140227125513-lfmtyiky5nyo05qg
Remove ellipsis from search index

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
using namespace Columbus;
30
30
 
31
31
static const QRegularExpression SINGLE_AMPERSAND("(?<![&])[&](?![&])");
 
32
static const QRegularExpression BAD_CHARACTERS("\\.\\.\\.|…");
32
33
static const QRegularExpression WHITESPACE("\\s+");
33
34
static const QRegularExpression WHITESPACE_OR_SEMICOLON("[;\\s+]");
34
35
 
73
74
                        continue;
74
75
                }
75
76
 
76
 
                QStringList text(convertActionText(action).split(WHITESPACE));
 
77
                QStringList text(
 
78
                                convertActionText(action).remove(BAD_CHARACTERS).split(
 
79
                                                WHITESPACE));
77
80
 
78
81
                bool isParameterized(action->property("isParameterized").toBool());
79
82