scancscode 1.0.34 → 1.0.36

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.
Files changed (33) hide show
  1. package/.trae/specs/fix-string-expression-capture-range/checklist.md +7 -0
  2. package/.trae/specs/fix-string-expression-capture-range/spec.md +96 -0
  3. package/.trae/specs/fix-string-expression-capture-range/tasks.md +25 -0
  4. package/.trae/specs/handle-null-value/checklist.md +10 -0
  5. package/.trae/specs/handle-null-value/spec.md +57 -0
  6. package/.trae/specs/handle-null-value/tasks.md +40 -0
  7. package/.trae/specs/handle-right-value-expression/checklist.md +9 -0
  8. package/.trae/specs/handle-right-value-expression/spec.md +72 -0
  9. package/.trae/specs/handle-right-value-expression/tasks.md +53 -0
  10. package/.trae/specs/process-function-call-interpolated-strings/checklist.md +12 -0
  11. package/.trae/specs/process-function-call-interpolated-strings/spec.md +80 -0
  12. package/.trae/specs/process-function-call-interpolated-strings/tasks.md +73 -0
  13. package/dist/src/CSharpStringExtractor.js +547 -117
  14. package/dist/src/LiteralCollector.js +4 -3
  15. package/dist/test/CSharpStringExtractor.test.js +174 -0
  16. package/package.json +1 -1
  17. package/src/CSharpStringExtractor.ts +581 -116
  18. package/src/LiteralCollector.ts +10 -9
  19. package/test/CSharpStringExtractor.test.ts +185 -0
  20. package/dist/debug-arg.js +0 -30
  21. package/dist/debug-args.js +0 -34
  22. package/dist/debug-comment-5.js +0 -25
  23. package/dist/debug-comment-strings.js +0 -24
  24. package/dist/debug-full.js +0 -14
  25. package/dist/debug-template-issue.js +0 -33
  26. package/dist/debug-test-5.js +0 -23
  27. package/dist/debug-test.js +0 -21
  28. package/dist/debug.js +0 -15
  29. package/dist/simple-debug.js +0 -27
  30. package/dist/simple-test.js +0 -61
  31. package/dist/temp-original-source.js +0 -1
  32. package/dist/test-logic.js +0 -79
  33. package/dist/test-regex.js +0 -13
@@ -1,13 +0,0 @@
1
- "use strict";
2
- const code = `infoStr += $"是否暴击: [b]{(_damageInfo.IsCritical ? "[color=#00B000]是[/color]" : "否")}[/b]\n";`;
3
- const templateRegex = /(\$@?|@\$)"((?:[^"\\]|\\.)*)"/gs;
4
- console.log('Testing regex...');
5
- console.log('Code:', code);
6
- let match;
7
- while ((match = templateRegex.exec(code)) !== null) {
8
- console.log('Match found:');
9
- console.log('Full match:', match[0]);
10
- console.log('Content:', match[2]);
11
- console.log('Content length:', match[2].length);
12
- console.log('---');
13
- }