Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96a2a80 commit 9a37418Copy full SHA for 9a37418
1 file changed
Doc/tools/node2label.pl
@@ -10,9 +10,16 @@
10
my $key;
11
# sort so that we get a consistent assignment for nodes with multiple labels
12
foreach $label (sort keys %external_labels) {
13
- $key = $external_labels{$label};
14
- $key =~ s|^/||;
15
- $nodes{$key} = $label;
+ #
+ # If the label can't be used as a filename on non-Unix platforms,
+ # skip it. Such labels may be used internally within the documentation,
16
+ # but will never be used for filename generation.
17
18
+ if ($label =~ /^([-.a-zA-Z0-9]+)$/) {
19
+ $key = $external_labels{$label};
20
+ $key =~ s|^/||;
21
+ $nodes{$key} = $label;
22
+ }
23
}
24
25
# This adds the "internal" labels added for indexing. These labels will not
0 commit comments