@leftium/gg 0.0.44 → 0.0.45
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.
|
@@ -747,7 +747,9 @@ export function transformGgCalls(code, shortPath, filePath, svelteInfo, jsFuncti
|
|
|
747
747
|
}
|
|
748
748
|
// Extract the first argument (the namespace string)
|
|
749
749
|
// Look for the string literal after 'gg.ns('
|
|
750
|
-
|
|
750
|
+
let afterNsParen = i + 6; // position after 'gg.ns('
|
|
751
|
+
while (afterNsParen < code.length && /\s/.test(code[afterNsParen]))
|
|
752
|
+
afterNsParen++;
|
|
751
753
|
const quoteChar = code[afterNsParen];
|
|
752
754
|
if (quoteChar === "'" || quoteChar === '"') {
|
|
753
755
|
// Find the closing quote
|