@craft-native/ios 0.0.353 → 0.0.354
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.
package/package.json
CHANGED
|
@@ -1698,11 +1698,11 @@ enum CraftSnapshots {
|
|
|
1698
1698
|
.appendingPathComponent("craft-snapshots", isDirectory: true)
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
-
/// Letters, digits, `-`, `_
|
|
1701
|
+
/// Letters, digits, `-`, `_`, `.` and account namespace `:`, not starting with a dot: a file
|
|
1702
1702
|
/// name, never a path.
|
|
1703
1703
|
static func isValidName(_ name: String) -> Bool {
|
|
1704
1704
|
!name.isEmpty && name.count <= 128 && !name.hasPrefix(".")
|
|
1705
|
-
&& name.unicodeScalars.allSatisfy { $0.isASCII && (CharacterSet.alphanumerics.contains($0) || "-_
|
|
1705
|
+
&& name.unicodeScalars.allSatisfy { $0.isASCII && (CharacterSet.alphanumerics.contains($0) || "-_.:".unicodeScalars.contains($0)) }
|
|
1706
1706
|
}
|
|
1707
1707
|
|
|
1708
1708
|
static func url(for name: String) -> URL? {
|