diff options
author | tegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-03-27 16:49:22 +0000 |
---|---|---|
committer | tegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-03-27 16:49:22 +0000 |
commit | 3a0ab9b3504dca69756463656f8f531e3903f3cc (patch) | |
tree | 73d58d3ce629a1bc39603b9c1a6148c862fff34a /navit/command.c | |
parent | 91f1fd1b2cd476b4268d037967247ad91e25916f (diff) | |
download | navit-3a0ab9b3504dca69756463656f8f531e3903f3cc.tar.gz |
Fix:core:Made command interpreter accept attribute names that start with letter character but contain digits on non-start position (Eg:vehicle.position_time_iso8601)
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4390 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/command.c')
-rw-r--r-- | navit/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/command.c b/navit/command.c index b23ead25e..1c957b2da 100644 --- a/navit/command.c +++ b/navit/command.c @@ -271,7 +271,7 @@ eval_value(struct context *ctx, struct result *res) { res->attr.type=attr_none; res->var=op; for (;;) { - while ((op[0] >= 'a' && op[0] <= 'z') || op[0] == '_') { + while ((op[0] >= 'a' && op[0] <= 'z') || (op[0] >= '0' && op[0] <= '9') || op[0] == '_') { res->varlen++; op++; } |