summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-08-08 11:17:07 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-08-08 11:17:07 -0700
commitd53bc57f5020a030ebb24a453efac16a212b7abf (patch)
treed740983b8f1757e230888edb20cf3d23248e2a80 /include
parent70a31baf5c78b9dad4f2dcdc7920b7eb1453e402 (diff)
downloadqtlocation-mapboxgl-d53bc57f5020a030ebb24a453efac16a212b7abf.tar.gz
Support dashes in tokens
https://github.com/mapbox/mapbox-gl-js/issues/678
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/token.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/token.hpp b/include/mbgl/util/token.hpp
index a794e0489c..786654133a 100644
--- a/include/mbgl/util/token.hpp
+++ b/include/mbgl/util/token.hpp
@@ -15,7 +15,7 @@ namespace mbgl {
namespace util {
namespace detail {
-const regex_impl::regex tokenRegex("\\{(\\w+)\\}");
+const regex_impl::regex tokenRegex("\\{([\\w-]+)\\}");
const regex_impl::sregex_token_iterator tokensEnd = regex_impl::sregex_token_iterator();
}