scancscode 1.0.21 → 1.0.22

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.
@@ -233,7 +233,7 @@ class CSCodeScanner {
233
233
  let stringEndIndex = stringStartIndex + stringLine.length;
234
234
  let prefix = bodyLine.substring(stringStartIndex - 2, stringStartIndex);
235
235
  let suffix = bodyLine.substring(stringEndIndex, stringEndIndex + trmethodcall.length);
236
- if ((stringStartIndex == 0 || prefix == "+ ") && suffix != trmethodcall) {
236
+ if ((stringStartIndex == 0 || prefix == "+ " || prefix == ": ") && suffix != trmethodcall) {
237
237
  formattedStringLine = formattedStringLine + trmethodcall;
238
238
  }
239
239
  return formattedStringLine;
@@ -47,7 +47,7 @@ class LiteralCollector {
47
47
  }
48
48
  let files = glob_1.glob.sync("**/*.cs", { cwd: folder });
49
49
  let testFullPath = "@";
50
- // let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/Functional/Rune/Model/RuneExt.cs";
50
+ // let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/FGUI/SutraUI_Detail/MainSutraDetailDialog.cs";
51
51
  for (const filePath of files) {
52
52
  let fullPath = folder + filePath;
53
53
  if (testFullPath != "@") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scancscode",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -243,7 +243,7 @@ export class CSCodeScanner {
243
243
  let stringEndIndex = stringStartIndex + stringLine.length;
244
244
  let prefix = bodyLine.substring(stringStartIndex - 2, stringStartIndex);
245
245
  let suffix = bodyLine.substring(stringEndIndex, stringEndIndex + trmethodcall.length);
246
- if ((stringStartIndex == 0 || prefix == "+ ") && suffix != trmethodcall) {
246
+ if ((stringStartIndex == 0 || prefix == "+ " || prefix == ": ") && suffix != trmethodcall) {
247
247
  formattedStringLine = formattedStringLine + trmethodcall;
248
248
  }
249
249
  return formattedStringLine;
@@ -15,7 +15,7 @@ export class LiteralCollector {
15
15
 
16
16
  let files = glob.sync("**/*.cs", { cwd: folder });
17
17
  let testFullPath = "@";
18
- // let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/Functional/Rune/Model/RuneExt.cs";
18
+ // let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/FGUI/SutraUI_Detail/MainSutraDetailDialog.cs";
19
19
  for (const filePath of files) {
20
20
  let fullPath = folder + filePath;
21
21
  if (testFullPath != "@") {