@lvce-editor/text-search-worker 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -506,6 +506,7 @@ const create = (uid, x, y, width, height, workspacePath, assetDir) => {
|
|
|
506
506
|
focusSource: User
|
|
507
507
|
};
|
|
508
508
|
set(uid, state, state);
|
|
509
|
+
return state;
|
|
509
510
|
};
|
|
510
511
|
|
|
511
512
|
// based on https://github.com/microsoft/vscode/blob/c0769274fa136b45799edeccc0d0a2f645b75caf/src/vs/base/common/arrays.ts#L625 (License MIT)
|
|
@@ -1527,7 +1528,7 @@ const getNewDeltaPercent = (height, scrollBarHeight, relativeY) => {
|
|
|
1527
1528
|
};
|
|
1528
1529
|
};
|
|
1529
1530
|
|
|
1530
|
-
const RE_PROTOCOL = /^([a-z
|
|
1531
|
+
const RE_PROTOCOL = /^([a-z-\d]+):\/\//;
|
|
1531
1532
|
const getProtocol = uri => {
|
|
1532
1533
|
const protocolMatch = uri.match(RE_PROTOCOL);
|
|
1533
1534
|
if (protocolMatch) {
|