dotstrings 3.1.0__tar.gz → 3.1.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dotstrings
3
- Version: 3.1.0
3
+ Version: 3.1.2
4
4
  Summary: Tools for dealing with the .strings files for iOS and macOS
5
5
  Home-page: https://github.com/Microsoft/dotstrings
6
6
  License: MIT
@@ -14,8 +14,8 @@ class Patterns:
14
14
 
15
15
  comment = re.compile(r"(\'(?:[^\'\\]|\\[\s\S])*\')|//.*|/\*(?:[^*]|\*(?!/))*\*/", re.MULTILINE)
16
16
  whitespace = re.compile(r"\s*", re.MULTILINE)
17
- entry = re.compile(r'"(.*)"\s*=\s*"(.*)";')
18
- quoteless_key_entry = re.compile(r'(.*?)\s*=\s*"(.*)";')
17
+ entry = re.compile(r'"(.*)"\s*=\s*"(.*)" *;')
18
+ quoteless_key_entry = re.compile(r'(.*?)\s*=\s*"(.*)" *;')
19
19
 
20
20
 
21
21
  class Scanner:
@@ -76,7 +76,7 @@ def load(file_details: TextIO | str, encoding: str | None = None) -> list[DotStr
76
76
  if encoding:
77
77
  encoding_list = [encoding]
78
78
  else:
79
- encoding_list = ["utf-8-sig", "utf-8", "utf-16-le", "utf-16-be"]
79
+ encoding_list = ["utf-8-sig", "utf-8", "utf-16", "utf-16-le", "utf-16-be"]
80
80
 
81
81
  for encoding_option in encoding_list:
82
82
  try:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dotstrings"
3
- version = "3.1.0"
3
+ version = "3.1.2"
4
4
  description = "Tools for dealing with the .strings files for iOS and macOS"
5
5
 
6
6
  license = "MIT"
File without changes
File without changes