blob: 03baa696dcce705f06cad993910a80c139913e7d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- kxkb/rules.cpp (revision 504758)
+++ kxkb/rules.cpp (working copy)
@@ -300,7 +300,7 @@
*/
const QString KeyRules::getLayout(const QString &layvar) const
{
- static const char* LAYOUT_PATTERN = "[a-z0-9_-]*";
+ static const char* LAYOUT_PATTERN = "[a-zA-Z0-9_-]*";
QString varLine = layvar.stripWhiteSpace();
QRegExp rx(LAYOUT_PATTERN);
int pos = rx.search(varLine, 0);
@@ -318,7 +318,7 @@
*/
const QString KeyRules::getVariant(const QString &layvar) const
{
- static const char* VARIANT_PATTERN = "\\([a-z0-9_-]*\\)";
+ static const char* VARIANT_PATTERN = "\\([a-zA-Z0-9_-]*\\)";
QString varLine = layvar.stripWhiteSpace();
QRegExp rx(VARIANT_PATTERN);
int pos = rx.search(varLine, 0);
|