The construction {,n} in regular expressions is only supported by Oniguruma (which is used by TextMate). This TextMate bundle is used to highlight Rust code on github.com. However, github.com is using a PCRE-based engine for regexes.
This pull request fixes that by using explicit count modifiers.
The construction
{,n}
in regular expressions is only supported by Oniguruma (which is used by TextMate). This TextMate bundle is used to highlight Rust code on github.com. However, github.com is using a PCRE-based engine for regexes.This pull request fixes that by using explicit count modifiers.