Skip to content

Commit cd4147f

Browse files
committed
Properly escape alt attributes in Chapter 9
1 parent f7ccf5a commit cd4147f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

09_regexp.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ than two patterns.
497497
expressions can be thought of as ((flow diagram))s. This is the
498498
diagram for the livestock expression in the previous example:
499499

500-
image::img/re_pigchickens.svg[alt="Visualization of /\b\d+ (pig|cow|chicken)s?\b/"]
500+
image::img/re_pigchickens.svg[alt="Visualization of /\\b\\d+ (pig|cow|chicken)s?\\b/"]
501501

502502
(((traversal)))Our expression matches a string if we can find a path
503503
from the left side of the diagram to the right side. We keep
@@ -555,7 +555,7 @@ character, or a hexadecimal number (that is, base 16, with the letters
555555
_a_ to _f_ standing for the digits 10 to 15) followed by an _h_. This
556556
is the corresponding diagram:
557557

558-
image::img/re_number.svg[alt="Visualization of /\b([01]+b|\d+|[\da-f]h)\b/"]
558+
image::img/re_number.svg[alt="Visualization of /\\b([01]+b|\\d+|[\\da-f]h)\\b/"]
559559

560560
(((branching)))When matching this expression, it will often happen
561561
that the top (binary) branch is entered even though the input does not

0 commit comments

Comments
 (0)