mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
fix typo
This commit is contained in:
parent
2bb6149e6c
commit
395c13f1f1
@ -127,7 +127,7 @@ results from this filter.
|
||||
|
||||
.. note::
|
||||
|
||||
Prefixes might be overriden by user preferences.
|
||||
Prefixes might be overridden by user preferences.
|
||||
|
||||
.. seealso:: :py:func:`activePrefix`
|
||||
%End
|
||||
|
@ -180,13 +180,13 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
|
||||
# also make error small case and escape special chars: () |
|
||||
ERRORSMALLCASE=$(echo ${ERRORNOCOLOR,,} |${GP}sed -r 's/\(/\\(/g' | ${GP}sed -r 's/\)/\\)/g' | ${GP}sed -r 's/\|/\\|/g' )
|
||||
if [[ ! "${ERRORSMALLCASE}" =~ $IGNORECASE_INWORD ]]; then
|
||||
if [[ -n $(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE:1:-1}${ERRORSMALLCASE: -1}?:" scripts/spell_check/spelling.dat) ]]; then
|
||||
if [[ -n $(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE:1:-1}${ERRORSMALLCASE: -1}?:" scripts/spell_check/spelling.dat) ]]; then
|
||||
PREVCHAR=${ERROR::1}
|
||||
# remove first character
|
||||
ERRORSMALLCASE=${ERRORSMALLCASE#?}
|
||||
ERROR=${ERROR#?}
|
||||
fi
|
||||
if [[ -n $(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE::-1}:" scripts/spell_check/spelling.dat) ]]; then
|
||||
if [[ -n $(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE::-1}:" scripts/spell_check/spelling.dat) ]]; then
|
||||
NEXTCHAR=${ERROR:${#ERROR}-1:1}
|
||||
# remove last character
|
||||
ERRORSMALLCASE=${ERRORSMALLCASE::-1}
|
||||
@ -196,9 +196,9 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
|
||||
ERRORSMALLCASE=$(${GP}sed -r 's/\./\\./g' <<< $ERRORSMALLCASE)
|
||||
|
||||
# get correction from spelling.dat
|
||||
CORRECTION=$(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f2)
|
||||
CORRECTION=$(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f2)
|
||||
# exclude script files
|
||||
if [[ "$(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
|
||||
if [[ "$(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
|
||||
if [[ "$FILE" =~ $EXCLUDE_SCRIPT_LIST ]]; then
|
||||
echo "skipping script file for $(${GP}sed -r 's/\\//g' <<< $ERRORSMALLCASE)"
|
||||
continue
|
||||
@ -208,7 +208,7 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
|
||||
if [[ -z "$CORRECTION" ]]; then
|
||||
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 )
|
||||
# exclude script files
|
||||
if [[ "$(ag --nonumbers --case-sensitive ":${CORRECTION}" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
|
||||
if [[ "$(ag --noaffinity --nonumbers --case-sensitive ":${CORRECTION}" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
|
||||
if [[ "$FILE" =~ $EXCLUDE_SCRIPT_LIST ]]; then
|
||||
echo "skipping script file for $(${GP}sed -r 's/\\//g' <<< $ERRORSMALLCASE)"
|
||||
continue
|
||||
|
@ -155,7 +155,7 @@ class CORE_EXPORT QgsLocatorFilter : public QObject
|
||||
* as these are reserved for core QGIS functions. If a plugin registers
|
||||
* a filter with a prefix shorter than 3 characters then the prefix will
|
||||
* be ignored.
|
||||
* \note Prefixes might be overriden by user preferences.
|
||||
* \note Prefixes might be overridden by user preferences.
|
||||
* \see activePrefix()
|
||||
*/
|
||||
virtual QString prefix() const { return QString(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user