mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 05:27:37 +00:00
Fix DTSJSDocParser not working for files like RegExp and String (removed artificial window)
This commit is contained in:
1 parent
8996f2b7f1
commit
8539fe96a4
1 file changed
+3
-4
+3
-4
@@ -181,10 +181,9 @@ public class DTSJSDocParser {
|
||||
|
||||
public static String extractJSDocBefore(String content, int elementStart) {
|
||||
if (elementStart <= 0) return null;
|
||||
|
||||
int searchStart = Math.max(0, elementStart - 2000);
|
||||
String searchArea = content.substring(searchStart, elementStart);
|
||||
|
||||
|
||||
String searchArea = content.substring(0, elementStart);
|
||||
|
||||
int lastJSDocEnd = searchArea.lastIndexOf("*/");
|
||||
if (lastJSDocEnd < 0) return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user