This is an automated email from the ASF dual-hosted git repository.

Harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new feaa97c7f3 Fix line splitting in readMetadata function to handle both 
LF and CRLF line endings
feaa97c7f3 is described below

commit feaa97c7f30a1c63de9b199f2e0a0e9871dd1e56
Author: Harbs <[email protected]>
AuthorDate: Tue Aug 4 06:52:27 2026 +0300

    Fix line splitting in readMetadata function to handle both LF and CRLF line 
endings
---
 frameworks/scripts/generate-codegraph-index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/scripts/generate-codegraph-index.js 
b/frameworks/scripts/generate-codegraph-index.js
index c363ccfbd9..39e8a7c7eb 100644
--- a/frameworks/scripts/generate-codegraph-index.js
+++ b/frameworks/scripts/generate-codegraph-index.js
@@ -46,7 +46,7 @@ function parseArguments(args) {
 
 function readMetadata(file) {
     const modules = new Map();
-    const lines = fs.readFileSync(file, "utf8").trim().split("\n");
+    const lines = fs.readFileSync(file, "utf8").trim().split(/\r?\n/);
     lines.forEach((line, lineIndex) => {
         const fields = line.split("\t");
         const kind = fields.shift();

Reply via email to