Blaze DocGen: Allow numbers in rule link headings.
RuleLinkExpander has incorrectly ignored expressions that contained a number in the heading of a rule link (e.g. `${link make-variables#custom_variables_2}`). This change fixes the problem, which has gone unnoticed for a long time.
@@ -108,8 +108,8 @@ public class DocgenConsts {
public static final Pattern BLAZE_RULE_LINK = Pattern.compile(
"\\$\\{link (([a-zA-Z_-]+)(\\.([a-zA-Z_\\.-]+))?)\\}");
- public static final Pattern BLAZE_RULE_HEADING_LINK = Pattern.compile(
- "\\$\\{link (([a-zA-Z_-]+)\\#([a-zA-Z_\\.-]+))\\}");
+ public static final Pattern BLAZE_RULE_HEADING_LINK =
+ Pattern.compile("\\$\\{link (([a-zA-Z_-]+)\\#([a-zA-Z0-9_\\.-]+))\\}");
/**
* i.e.
