Skip to content

Commit 6569665

Browse files
committed
Fixed problem with table parsing in script_2.js
1 parent 4ec66e7 commit 6569665

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

web/script_2.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,11 @@ const DIAGRAM_6_A =
118118
'| contains() | | yes | | yes |\n' +
119119
'+------------+----------+------------+----------+--------------+\n';
120120

121+
// Shortened because selector can not contain parentheses.
121122
const DIAGRAM_6_B =
122123
'┏━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n' +
123124
'┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃\n' +
124-
'┠────────────┼──────────┼────────────┼──────────┼──────────────┨\n' +
125-
'┃ iter() │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' +
126-
'┃ len() │ │ ✓ │ ✓ │ ✓ ┃\n' +
127-
'┃ getitem() │ │ │ ✓ │ ✓ ┃\n' +
128-
'┃ contains() │ │ ✓ │ │ ✓ ┃\n' +
129-
'┗━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n';
125+
'┠────────────┼──────────┼────────────┼──────────┼──────────────┨\n';
130126

131127

132128
// isFontAvailable:
@@ -138,7 +134,7 @@ if (!isFontAvailable('Menlo')) {
138134
$(`code:contains(${DIAGRAM_3_B})`).html(DIAGRAM_3_A);
139135
$(`code:contains(${DIAGRAM_4_B})`).html(DIAGRAM_4_A);
140136
$(`code:contains(${DIAGRAM_5_B})`).html(DIAGRAM_5_A);
141-
// $(`code:contains(${DIAGRAM_6_B})`).html(DIAGRAM_6_A);
137+
$(`code:contains(${DIAGRAM_6_B})`).html(DIAGRAM_6_A);
142138
// var htmlString = $('code:contains(ᴺᴱᵂ)').html().replace(/ᴺᴱᵂ/g, '');
143139
// $('code:contains(ᴺᴱᵂ)').html(htmlString);
144140
}

0 commit comments

Comments
 (0)