Skip to content

Instantly share code, notes, and snippets.

View markmals's full-sized avatar

Mark Malstrom markmals

View GitHub Profile
@markmals
markmals / String+formattedForPlex.swift
Last active October 14, 2018 06:07
Format a file name of a video to the correct Plex format
extension String {
var formattedForPlex: String {
var newName = self
// Remove all text at the end
let regexEndText = "\\d{3,4}p.+"
if let range = newName.range(of: regexEndText, options: .regularExpression) {
newName.removeSubrange(range)
}
@markmals
markmals / Swift Wish List.md
Last active June 12, 2022 21:10
Features I would like to see from Swift and its core ecosystem

Swift Wish List

Features I would like to see from Swift and its core ecosystem, to make it a robust and ergonomic language for all use cases.

  • ❌ = Unimplemented
  • 📜 = Manifesto
  • ⚾️ = Pitch
  • 💍 = Proposal
  • ⛔️ = Partially Implemented / Awaiting Implementation
  • ⚠️ = In Active Review