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 | 5c7cc2073fb39e7352a2bc0489bf952d3f5a27e3 (patch) | |
tree | 73d58d3ce629a1bc39603b9c1a6148c862fff34a /navit/command.c | |
parent | 5debe743918d85eab8cd6cc94895c531c181da14 (diff) | |
download | navit-svn-5c7cc2073fb39e7352a2bc0489bf952d3f5a27e3.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 b23ead25..1c957b2d 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++; } |