Skip to content

Commit ed3b2bd

Browse files
committed
Try: Change query param for advanced. Expand flight example.
1 parent 43f40c2 commit ed3b2bd

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ <h1 class="text-4xl font-bold">Cucumber Expressions</h1>
2626
<div class="mb-1 text-gray-700">More examples</div>
2727
<ul class="list-disc list-inside p-2">
2828
<li>
29-
<a class="text-sm underline" href='?expression=a boy named {string}&parameters=[]&step=a boy named "Sue"'>a boy named {string}</a>
29+
<a class="text-sm underline" href='?expression=a boy named {string}&parameters=[]&advanced=0&step=a boy named "Sue"'>a boy named {string}</a>
3030
</li>
3131
<li>
32-
<a class="text-sm underline" href='?expression=flight {flight} is delayed&parameters=[{"name"%3A"flight"%2C"regexp"%3A"([A-Z]{3})-([A-Z]{3})"}]&showBuiltins=0&step=flight LHR-CDG is delayed'>flight {flight} is delayed</a>
32+
<a class="text-sm underline" href='?expression=flight {flight} is delayed&parameters=[{"name"%3A"flight"%2C"regexp"%3A"([A-Z]{3})-([A-Z]{3})"}]&advanced=1&step=flight LHR-CDG is delayed'>flight {flight} is delayed</a>
3333
</li>
3434
</ul>
3535
</p>

docs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascript/try/Try.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
ParameterType,
1111
ParameterTypeRegistry,
1212
} from '../src/index'
13-
import { ExpressionEditor } from './codemirror/ExpressionEditor'
13+
import { ExpressionEditor } from './codemirror/ExpressionEditor.js'
1414
import { TextEditor } from './codemirror/TextEditor.js'
1515
import { CopyButton } from './useCopyToClipboard.js'
1616

@@ -41,7 +41,7 @@ export const Try: React.FunctionComponent<Props> = ({
4141
)
4242
const [stepText, setStepText] = useQueryParam('step', withDefault(StringParam, defaultStepText))
4343
const [showAdvanced, setShowAdvanced] = useQueryParam(
44-
'showBuiltins',
44+
'advanced',
4545
withDefault(BooleanParam, false)
4646
)
4747
const [parameters, setParameters] = useQueryParam<readonly Parameter[]>(

0 commit comments

Comments
 (0)