Skip to content

Commit 395c13f

Browse files
committedMay 11, 2018
fix typo
1 parent 2bb6149 commit 395c13f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎python/core/locator/qgslocatorfilter.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ results from this filter.
127127

128128
.. note::
129129

130-
Prefixes might be overriden by user preferences.
130+
Prefixes might be overridden by user preferences.
131131

132132
.. seealso:: :py:func:`activePrefix`
133133
%End

‎scripts/spell_check/check_spelling.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
180180
# also make error small case and escape special chars: () |
181181
ERRORSMALLCASE=$(echo ${ERRORNOCOLOR,,} |${GP}sed -r 's/\(/\\(/g' | ${GP}sed -r 's/\)/\\)/g' | ${GP}sed -r 's/\|/\\|/g' )
182182
if [[ ! "${ERRORSMALLCASE}" =~ $IGNORECASE_INWORD ]]; then
183-
if [[ -n $(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE:1:-1}${ERRORSMALLCASE: -1}?:" scripts/spell_check/spelling.dat) ]]; then
183+
if [[ -n $(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE:1:-1}${ERRORSMALLCASE: -1}?:" scripts/spell_check/spelling.dat) ]]; then
184184
PREVCHAR=${ERROR::1}
185185
# remove first character
186186
ERRORSMALLCASE=${ERRORSMALLCASE#?}
187187
ERROR=${ERROR#?}
188188
fi
189-
if [[ -n $(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE::-1}:" scripts/spell_check/spelling.dat) ]]; then
189+
if [[ -n $(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE::-1}:" scripts/spell_check/spelling.dat) ]]; then
190190
NEXTCHAR=${ERROR:${#ERROR}-1:1}
191191
# remove last character
192192
ERRORSMALLCASE=${ERRORSMALLCASE::-1}
@@ -196,9 +196,9 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
196196
ERRORSMALLCASE=$(${GP}sed -r 's/\./\\./g' <<< $ERRORSMALLCASE)
197197

198198
# get correction from spelling.dat
199-
CORRECTION=$(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f2)
199+
CORRECTION=$(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f2)
200200
# exclude script files
201-
if [[ "$(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
201+
if [[ "$(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
202202
if [[ "$FILE" =~ $EXCLUDE_SCRIPT_LIST ]]; then
203203
echo "skipping script file for $(${GP}sed -r 's/\\//g' <<< $ERRORSMALLCASE)"
204204
continue
@@ -208,7 +208,7 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
208208
if [[ -z "$CORRECTION" ]]; then
209209
CORRECTION=$(perl -e "use strict; use warnings; while(<>) { chop; my(\$a,\$b) = split /:/; \$a = qr(\$a); if( my @matches = '${ERRORSMALLCASE}' =~ /^\$a\$/i ) { print sprintf(\$b, @matches); last; }}" ${DIR}/spelling.dat )
210210
# exclude script files
211-
if [[ "$(ag --nonumbers --case-sensitive ":${CORRECTION}" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
211+
if [[ "$(ag --noaffinity --nonumbers --case-sensitive ":${CORRECTION}" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
212212
if [[ "$FILE" =~ $EXCLUDE_SCRIPT_LIST ]]; then
213213
echo "skipping script file for $(${GP}sed -r 's/\\//g' <<< $ERRORSMALLCASE)"
214214
continue

‎src/core/locator/qgslocatorfilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class CORE_EXPORT QgsLocatorFilter : public QObject
155155
* as these are reserved for core QGIS functions. If a plugin registers
156156
* a filter with a prefix shorter than 3 characters then the prefix will
157157
* be ignored.
158-
* \note Prefixes might be overriden by user preferences.
158+
* \note Prefixes might be overridden by user preferences.
159159
* \see activePrefix()
160160
*/
161161
virtual QString prefix() const { return QString(); }

0 commit comments

Comments
 (0)
Please sign in to comment.