Fix minor typos
parent
7daddb524c
commit
38bb10de49
|
@ -85,7 +85,7 @@ namespace base32
|
||||||
/*
|
/*
|
||||||
* sanity check that:
|
* sanity check that:
|
||||||
* - decoding base32 succeeded
|
* - decoding base32 succeeded
|
||||||
* - the library agrees on how big the output buffer should be, i.e. that the preceeding allocation logic was correct
|
* - the library agrees on how big the output buffer should be, i.e. that the preceding allocation logic was correct
|
||||||
*/
|
*/
|
||||||
ok = status == OATH_OK && reportedCapacity == ((size_t) capacity);
|
ok = status == OATH_OK && reportedCapacity == ((size_t) capacity);
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace validators
|
||||||
return std::optional<qulonglong>(v);
|
return std::optional<qulonglong>(v);
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* Fall back to parsing according to C locale for beter UX.
|
* Fall back to parsing according to C locale for better UX.
|
||||||
* This simplifies copy-pasting from websites which may be a bit
|
* This simplifies copy-pasting from websites which may be a bit
|
||||||
* biased towards the Anglosphere.
|
* biased towards the Anglosphere.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
|
|
||||||
QRegularExpression spaces_patern(void)
|
QRegularExpression spaces_pattern(void)
|
||||||
{
|
{
|
||||||
static const QRegularExpression re("\\s*");
|
static const QRegularExpression re("\\s*");
|
||||||
re.optimize();
|
re.optimize();
|
||||||
|
@ -32,7 +32,7 @@ namespace validators
|
||||||
|
|
||||||
QString strip_spaces(QString &input)
|
QString strip_spaces(QString &input)
|
||||||
{
|
{
|
||||||
static const QRegularExpression re = spaces_patern();
|
static const QRegularExpression re = spaces_pattern();
|
||||||
return input.replace(re, QLatin1String(""));
|
return input.replace(re, QLatin1String(""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue