File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,7 @@ function serveTest(query, response)
272
272
html . push ( "\t\t\t<th style=\"text-align:center;\">Test</th>\n" ) ;
273
273
html . push ( "\t\t\t<th>Input</th>" ) ;
274
274
html . push ( "\t\t\t<th>input.replace()</th>" ) ;
275
+ html . push ( "\t\t\t<th>input.replaceAll()</th>" ) ;
275
276
html . push ( "\t\t\t<th>input.split()[]</th>" ) ;
276
277
html . push ( "\t\t\t<th>regex.test()</th>" ) ;
277
278
html . push ( "\t\t\t<th>regex.exec().index</th>" ) ;
@@ -309,6 +310,10 @@ function serveTest(query, response)
309
310
html . push ( h ( input . replace ( new RegExp ( str_regex , str_options ) , replacement == null ? "" : replacement ) ) ) ;
310
311
html . push ( "</td>\n" ) ;
311
312
313
+ html . push ( '\t\t\t<td>' ) ;
314
+ html . push ( h ( input . replaceAll ( new RegExp ( str_regex , str_options ) , replacement == null ? "" : replacement ) ) ) ;
315
+ html . push ( "</td>\n" ) ;
316
+
312
317
html . push ( '\t\t\t<td>' ) ;
313
318
var splits = input . split ( new RegExp ( str_regex , str_options ) ) ;
314
319
for ( var split = 0 ; split < splits . length ; split ++ )
You can’t perform that action at this time.
0 commit comments