Skip to content

Commit 394062e

Browse files
committed
v3.1.1 doc: Update README.md 85e5f2a
1 parent 9b6eb14 commit 394062e

17 files changed

Lines changed: 42 additions & 28 deletions

asset-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"files": {
33
"main.css": "/static/css/main.2f8f67b9.css",
4-
"main.js": "/static/js/main.48bea58d.js",
4+
"main.js": "/static/js/main.fa3ecf62.js",
55
"code-example-vendor.js": "/static/js/code-example-vendor.032313f1.chunk.js",
66
"refractor-vendor.js": "/static/js/refractor-vendor.bb1053f9.js",
77
"react-vendor.js": "/static/js/react-vendor.5bec418d.js",
88
"index.html": "/index.html",
99
"main.2f8f67b9.css.map": "/static/css/main.2f8f67b9.css.map",
10-
"main.48bea58d.js.map": "/static/js/main.48bea58d.js.map",
10+
"main.fa3ecf62.js.map": "/static/js/main.fa3ecf62.js.map",
1111
"code-example-vendor.032313f1.chunk.js.map": "/static/js/code-example-vendor.032313f1.chunk.js.map",
1212
"refractor-vendor.bb1053f9.js.map": "/static/js/refractor-vendor.bb1053f9.js.map",
1313
"react-vendor.5bec418d.js.map": "/static/js/react-vendor.5bec418d.js.map"
@@ -16,6 +16,6 @@
1616
"static/js/refractor-vendor.bb1053f9.js",
1717
"static/js/react-vendor.5bec418d.js",
1818
"static/css/main.2f8f67b9.css",
19-
"static/js/main.48bea58d.js"
19+
"static/js/main.fa3ecf62.js"
2020
]
2121
}

badges.svg

Lines changed: 4 additions & 4 deletions
Loading

coverage/lcov-report/Editor.tsx.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ <h1><a href="index.html">All files</a> Editor.tsx</h1>
475475
<div class='footer quiet pad2 space-top1 center small'>
476476
Code coverage generated by
477477
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
478-
at 2025-08-15T19:30:00.134Z
478+
at 2025-09-18T17:10:31.955Z
479479
</div>
480480
<script src="prettify.js"></script>
481481
<script>

coverage/lcov-report/SelectionText.ts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ <h1><a href="index.html">All files</a> SelectionText.ts</h1>
358358
<div class='footer quiet pad2 space-top1 center small'>
359359
Code coverage generated by
360360
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
361-
at 2025-08-15T19:30:00.134Z
361+
at 2025-09-18T17:10:31.955Z
362362
</div>
363363
<script src="prettify.js"></script>
364364
<script>

coverage/lcov-report/block-navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var jumpToCode = (function init() {
99
// We don't want to select elements that are direct descendants of another match
1010
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
1111

12-
// Selecter that finds elements on the page to which we can jump
12+
// Selector that finds elements on the page to which we can jump
1313
var selector =
1414
fileListingElements.join(', ') +
1515
', ' +

coverage/lcov-report/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ <h1>All files</h1>
191191
<div class='footer quiet pad2 space-top1 center small'>
192192
Code coverage generated by
193193
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
194-
at 2025-08-15T19:30:00.134Z
194+
at 2025-09-18T17:10:31.955Z
195195
</div>
196196
<script src="prettify.js"></script>
197197
<script>

coverage/lcov-report/index.nohighlight.tsx.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ <h1><a href="index.html">All files</a> index.nohighlight.tsx</h1>
9494
<div class='footer quiet pad2 space-top1 center small'>
9595
Code coverage generated by
9696
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
97-
at 2025-08-15T19:30:00.134Z
97+
at 2025-09-18T17:10:31.955Z
9898
</div>
9999
<script src="prettify.js"></script>
100100
<script>

coverage/lcov-report/index.tsx.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h1><a href="index.html">All files</a> index.tsx</h1>
103103
<div class='footer quiet pad2 space-top1 center small'>
104104
Code coverage generated by
105105
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
106-
at 2025-08-15T19:30:00.134Z
106+
at 2025-09-18T17:10:31.955Z
107107
</div>
108108
<script src="prettify.js"></script>
109109
<script>

coverage/lcov-report/shortcuts.ts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ <h1><a href="index.html">All files</a> shortcuts.ts</h1>
268268
<div class='footer quiet pad2 space-top1 center small'>
269269
Code coverage generated by
270270
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
271-
at 2025-08-15T19:30:00.134Z
271+
at 2025-09-18T17:10:31.955Z
272272
</div>
273273
<script src="prettify.js"></script>
274274
<script>

coverage/lcov-report/sorter.js

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,31 @@ var addSorting = (function() {
2727
function onFilterInput() {
2828
const searchValue = document.getElementById('fileSearch').value;
2929
const rows = document.getElementsByTagName('tbody')[0].children;
30+
31+
// Try to create a RegExp from the searchValue. If it fails (invalid regex),
32+
// it will be treated as a plain text search
33+
let searchRegex;
34+
try {
35+
searchRegex = new RegExp(searchValue, 'i'); // 'i' for case-insensitive
36+
} catch (error) {
37+
searchRegex = null;
38+
}
39+
3040
for (let i = 0; i < rows.length; i++) {
3141
const row = rows[i];
32-
if (
33-
row.textContent
34-
.toLowerCase()
35-
.includes(searchValue.toLowerCase())
36-
) {
37-
row.style.display = '';
42+
let isMatch = false;
43+
44+
if (searchRegex) {
45+
// If a valid regex was created, use it for matching
46+
isMatch = searchRegex.test(row.textContent);
3847
} else {
39-
row.style.display = 'none';
48+
// Otherwise, fall back to the original plain text search
49+
isMatch = row.textContent
50+
.toLowerCase()
51+
.includes(searchValue.toLowerCase());
4052
}
53+
54+
row.style.display = isMatch ? '' : 'none';
4155
}
4256
}
4357

0 commit comments

Comments
 (0)