Skip to content

Commit 65690f1

Browse files
Merge pull request #443 from ossf/lab_format_fixup2
Lab format fixup2
2 parents 19d1acc + bbd7421 commit 65690f1

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

docs/labs/csp1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
409409
<button type="button" class="resetButton">Reset</button>
410410
<button type="button" class="giveUpButton">Give up</button>
411411
<br><br>
412-
<pre id="correctStamp"></pre>
412+
<pre id="correctStamp" class=small"></pre>
413413
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
414414
</textarea>
415415
</form>

docs/labs/hello.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
170170
<button type="button" class="resetButton">Reset</button>
171171
<button type="button" class="giveUpButton">Give up</button>
172172
<br><br>
173-
<pre id="correctStamp"></pre>
173+
<pre id="correctStamp" class=small"></pre>
174174
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
175175
</textarea>
176176
</form>

docs/labs/input1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
226226
<button type="button" class="resetButton">Reset</button>
227227
<button type="button" class="giveUpButton">Give up</button>
228228
<br><br><!-- These go in the last form if there's more than one: -->
229-
<pre id="correctStamp"></pre>
229+
<pre id="correctStamp" class=small"></pre>
230230
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
231231
</textarea>
232232
</form>

docs/labs/input2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
217217
<button type="button" class="resetButton">Reset</button>
218218
<button type="button" class="giveUpButton">Give up</button>
219219
<br><br>
220-
<pre id="correctStamp"></pre>
220+
<pre id="correctStamp" class=small"></pre>
221221
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
222222
</textarea>
223223
</form>

docs/labs/regex1.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,13 @@ <h2>Task Information</h2>
297297
<p>
298298
We want to use regexes to <i>validate</i> input.
299299
That is, the input should <i>completely</i> match the regex pattern.
300-
In regexes you can do this by prepending some symbol and appending a different
300+
In regexes you can do this by using its default mode
301+
(not a "multiline" mode), prepending some symbol, and appending a different
301302
symbol.
302-
Unfortunately, different languages use different symbols.
303-
The following table shows what you should prepend and append.
303+
Unfortunately, different platforms use different regex
304+
symbols for performing a complete match to an input.
305+
The following table shows what you should prepend and append for
306+
many different platforms (for their default regex system).
304307

305308
<p>
306309
<table>
@@ -331,7 +334,12 @@ <h2>Task Information</h2>
331334
</table>
332335

333336
<p>
334-
For example, to validate in JavaScript that the input is only “ab” or “de”, use the regex “^(ab|de)$”. To validate the same thing in Python, use “^(ab|de)\Z” or “\A(ab|de)\Z”.
337+
For example, to validate in ECMAScript (JavaScript)
338+
that an input is must be either “<tt>ab</tt>” or “<tt>de</tt>”,
339+
use the regex “<tt>^(ab|de)$</tt>”.
340+
To validate the same thing in Python, use
341+
<tt>^(ab|de)\Z</tt>” or “<tt>\A(ab|de)\Z</tt>” (note that it's
342+
not quite the same thing).
335343

336344
<p>
337345
<h2>Interactive Lab (<span id="grade"></span>)</h2>
@@ -431,7 +439,7 @@ <h3>Part 5</h2>
431439

432440

433441
<br><br><!-- These go in the last form if there's more than one: -->
434-
<pre id="correctStamp"></pre>
442+
<pre id="correctStamp" class=small"></pre>
435443
<textarea id="debugData" class="displayNone" rows="20" cols="70" readonly>
436444
</textarea>
437445

0 commit comments

Comments
 (0)