mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Give the pattern used to pick out a source anchor a more specific pattern.
This commit is contained in:
parent
5962eb0d89
commit
f015d9a5f6
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ foreach $label (keys %internal_labels) {
|
||||||
while (<>) {
|
while (<>) {
|
||||||
# don't want to do one s/// per line per node
|
# don't want to do one s/// per line per node
|
||||||
# so look for lines with hrefs, then do s/// on nodes present
|
# so look for lines with hrefs, then do s/// on nodes present
|
||||||
if (/(HREF|href)=[\"\']([^\#\"\']*)html[\#\"\']/) {
|
if (/(HREF|href)=[\"\']node\d+\.html[\#\"\']/) {
|
||||||
@parts = split(/(HREF|href)\=[\"\']/);
|
@parts = split(/(HREF|href)\=[\"\']/);
|
||||||
shift @parts;
|
shift @parts;
|
||||||
for $node (@parts) {
|
for $node (@parts) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue