@insitue/capture-core 0.3.0 → 0.3.1
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.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -138,7 +138,7 @@ function toLoc(workspaceCwdRelative) {
|
|
|
138
138
|
function fromAttribute(el) {
|
|
139
139
|
let cur = el;
|
|
140
140
|
for (let i = 0; cur && i < 8; i++, cur = cur.parentElement) {
|
|
141
|
-
const raw = cur.getAttribute("data-insitue-source");
|
|
141
|
+
const raw = cur.getAttribute("data-insitue-source") ?? cur.getAttribute("data-insitu-source");
|
|
142
142
|
if (raw) {
|
|
143
143
|
const m = /^(.*):(\d+):(\d+)$/.exec(raw);
|
|
144
144
|
if (m) return { file: m[1], line: Number(m[2]), column: Number(m[3]) };
|