Support dashes in tokens
https://github.com/mapbox/mapbox-gl-js/issues/678
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user