mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
443 B
12 lines
443 B
#include "I2pdQtUtil.h" |
|
|
|
bool isValidSingleLine(QLineEdit* widget, WrongInputPageEnum inputPage, MainWindow* mainWindow) { |
|
bool correct = !widget->text().contains(QRegularExpression("[\r\n]"), nullptr); |
|
if(!correct) { |
|
mainWindow->highlightWrongInput( |
|
QApplication::tr("Single line input expected, but it's multiline"), |
|
inputPage, |
|
widget); |
|
} |
|
return correct; |
|
}
|
|
|