File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,9 @@ <h1 class="modal-title fs-5" id="debugger-modal-title">Regex Debugger</h1>
209
209
< div class ="d-flex ">
210
210
< input id ="debugger-step-range " type ="range " class ="form-range flex-grow-1 " value ="1 " min ="1 "
211
211
max ="100 ">
212
- < div id ="debugger-step-range-max " class ="ms-3 "> 100</ div >
212
+ < div class ="ms-3 ">
213
+ < span id ="debugger-step-range-max " class ="badge rounded-pill text-bg-secondary "> 100</ span >
214
+ </ div >
213
215
</ div >
214
216
< p class ="mb-0 " style ="text-align: center ">
215
217
< button id ="debugger-go-start " class ="btn btn-sm btn-outline-secondary rounded-circle button-circle ">
@@ -229,7 +231,9 @@ <h1 class="modal-title fs-5" id="debugger-modal-title">Regex Debugger</h1>
229
231
</ p >
230
232
231
233
< div class ="my-1 " style ="font-weight: 600; "> Match Step < span id ="debugger-match-step "> </ span > </ div >
232
- < div id ="debugger-regex " class ="border mb-3 ">
234
+ < div class ="mb-3 ">
235
+ < input id ="debugger-regex " type ="text " class ="form-control form-control-sm border shadow-none "
236
+ style ="border-radius: 0; " readonly >
233
237
</ div >
234
238
235
239
< div class ="border my-3 ">
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ export class App {
207
207
matchStep . textContent = "1" ;
208
208
209
209
const debuggerPattern = document . getElementById ( "debugger-regex" ) ;
210
- debuggerPattern . textContent = expression ;
210
+ debuggerPattern . value = expression ;
211
211
212
212
this . debuggerText . value = text ;
213
213
@@ -302,7 +302,7 @@ export class App {
302
302
const method = "debug" ;
303
303
const params = {
304
304
method,
305
- pattern : document . getElementById ( "debugger-regex" ) . textContent ,
305
+ pattern : document . getElementById ( "debugger-regex" ) . value ,
306
306
text : this . debuggerText . value ,
307
307
matchOptions : this . matchOptions . value ,
308
308
step : document . getElementById ( "debugger-step-range" ) . value ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ $table-cell-padding-y-sm: 0.05rem;
17
17
@import " bootstrap/scss/buttons" ;
18
18
@import " bootstrap/scss/transitions" ;
19
19
@import " bootstrap/scss/dropdown" ;
20
+ @import " bootstrap/scss/badge" ;
20
21
@import " bootstrap/scss/close" ;
21
22
@import " bootstrap/scss/modal" ;
22
23
You can’t perform that action at this time.
0 commit comments