scancscode 1.0.4 → 1.0.5

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.
@@ -46,8 +46,8 @@ class LiteralCollector {
46
46
  return;
47
47
  }
48
48
  let files = glob_1.glob.sync("**/*.cs", { cwd: folder });
49
- let testFullPath = "@";
50
- // let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/FGUI/TowerTop/Comp/ItemTopComp.cs";
49
+ // let testFullPath = "@";
50
+ let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/FGUI/Shop/SuperGiftsDialog.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.4",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -11,7 +11,7 @@ export class CSCodeScanner {
11
11
  // 正则表达式匹配 匹配每个字符串
12
12
  private static readonly stringPattern = /\$?"([^"]*)"/mg;
13
13
  // 正则表达式匹配插值表达式 {...}
14
- private static readonly interpolationPattern = /\{([^}]+?)(\:[a-zA-Z\d-\.\#]+)?\}/mg;
14
+ private static readonly interpolationPattern = /\{([^}]+?)(\:[a-zA-Z\d-\.\#(?:\\\\:)]+)?\}/mg;
15
15
 
16
16
  private static readonly stringFormatPattern = /(?<![a-zA-Z_])([sS]tring\.Format)(?=\(.*?\))/mg;
17
17
 
@@ -8,7 +8,7 @@ function isNullOrEmpty<T>(arr: T[]): boolean {
8
8
 
9
9
  export class CmdExecutor {
10
10
  static testConvert() {
11
- let cwd = "../../../GameClient/"
11
+ let cwd = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/"
12
12
  let cscodeFolders = [cwd + "Assets/Bundles/FGUI/"]
13
13
  let gameConfigFolders = [cwd + "Assets/Bundles/GameConfigs/"]
14
14
  let outCsvFile = "E:/DATA/Projects/e-gbl-client/client/Assets/Bundles/GameConfigs/Translation/hello.csv"
@@ -14,8 +14,8 @@ export class LiteralCollector {
14
14
  }
15
15
 
16
16
  let files = glob.sync("**/*.cs", { cwd: folder });
17
- let testFullPath = "@";
18
- // let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/FGUI/TowerTop/Comp/ItemTopComp.cs";
17
+ // let testFullPath = "@";
18
+ let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/FGUI/Shop/SuperGiftsDialog.cs";
19
19
  for (const filePath of files) {
20
20
  let fullPath = folder + filePath;
21
21
  if (testFullPath != "@") {