From d53bc57f5020a030ebb24a453efac16a212b7abf Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 8 Aug 2014 11:17:07 -0700 Subject: [PATCH] Support dashes in tokens https://github.com/mapbox/mapbox-gl-js/issues/678 --- include/mbgl/util/token.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mbgl/util/token.hpp b/include/mbgl/util/token.hpp index a794e0489..786654133 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(); }