Skip to content

Commit 16f15a4

Browse files
Simplify oob1.js
Signed-off-by: David A. Wheeler <[email protected]>
1 parent 4b4f636 commit 16f15a4

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

docs/labs/oob1.js

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ info =
66
text: "Begin with \"if\" as we will return 0 when there is a problem."
77
},
88
{
9-
absent: String.raw`\(
10-
`,
9+
absent: String.raw`\(`,
1110
text: "Need \"(...)\" around the condition after an if statement."
1211
},
1312
{
14-
absent: ">\n",
13+
absent: ">",
1514
text: "Need comparison \"if ( ... > ....)\""
1615
},
1716
{
@@ -26,13 +25,11 @@ info =
2625
definitions: [
2726
{
2827
term: "NINETEEN",
29-
value: String.raw`(1 \+ 2 \+ 16|19)
30-
`
28+
value: String.raw`(1 \+ 2 \+ 16|19)`
3129
},
3230
{
3331
term: "NINETEEN",
34-
value: String.raw`(NINETEEN|\( NINETEEN \))
35-
`
32+
value: String.raw`(NINETEEN|\( NINETEEN \))`
3633
},
3734
{
3835
term: "PAYLOAD_LENGTH",
@@ -44,23 +41,19 @@ info =
4441
},
4542
{
4643
term: "PAYLOAD_LENGTH",
47-
value: String.raw`(PAYLOAD_LENGTH|\( PAYLOAD_LENGTH \))
48-
`
44+
value: String.raw`(PAYLOAD_LENGTH|\( PAYLOAD_LENGTH \))`
4945
},
5046
{
5147
term: "RETURN0",
52-
value: String.raw`return \s+ 0 ;
53-
`
48+
value: String.raw`return \s+ 0 ;`
5449
},
5550
{
5651
term: "FULL_LENGTH",
57-
value: String.raw`s -> s3 -> rrec \. length
58-
`
52+
value: String.raw`s -> s3 -> rrec \. length`
5953
},
6054
{
6155
term: "RETURN0",
62-
value: String.raw`(RETURN0|\{ RETURN0 \})
63-
`
56+
value: String.raw`(RETURN0|\{ RETURN0 \})`
6457
}
6558
]
6659
}

0 commit comments

Comments
 (0)