Remove minus since it's an invalid literal

This commit is contained in:
thez3ro 2017-12-30 14:16:18 +01:00
parent e803076063
commit 6d046f251e
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
3 changed files with 6 additions and 3 deletions

View file

@ -616,7 +616,7 @@ bool AutoType::checkSyntax(const QString& string)
// the ":" allows custom commands with syntax S:Field
// exclude BEEP otherwise will be checked as valid
QString normalCommands = "(?!BEEP\\s)[A-Z:]*" + allowRepetition;
QString specialLiterals = "[\\^\\%\\(\\)~\\{\\}\\[\\]\\+-]" + allowRepetition;
QString specialLiterals = "[\\^\\%\\(\\)~\\{\\}\\[\\]\\+]" + allowRepetition;
QString functionKeys = "(?:F[1-9]" + allowRepetition + "|F1[0-2])" + allowRepetition;
QString numpad = "NUMPAD\\d" + allowRepetition;
QString delay = "DELAY=\\d+";