Support dashes in tokens

https://github.com/mapbox/mapbox-gl-js/issues/678
This commit is contained in:
John Firebaugh
2014-08-08 11:17:07 -07:00
parent 70a31baf5c
commit d53bc57f50

View File

@@ -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();
}