Skip to content

Commit

Permalink
project: move to swift 6
Browse files Browse the repository at this point in the history
  • Loading branch information
kattouf committed Nov 13, 2024
1 parent 310a070 commit 0d245e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MAKEFLAGS += --no-print-directory
EXECUTABLE_NAME := progressline
SWIFT_VERSION := 5.10
SWIFT_VERSION := 6.0
ROOT_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
DOCKER_RUN := docker run --rm --volume $(ROOT_PATH):/workdir --workdir /workdir
ZIP := zip -j
Expand Down
2 changes: 1 addition & 1 deletion Sources/OriginalLogController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class OriginalLogController {
do {
let url = URL(fileURLWithPath: path)
try FileManager.default.createDirectory(at: url.deletingLastPathComponent(), withIntermediateDirectories: true)
FileManager.default.createFile(atPath: path, contents: nil)
_ = FileManager.default.createFile(atPath: path, contents: nil)
self.fileHandle = try FileHandle(forWritingTo: url)
fileHandle.seekToEndOfFile()
} catch {
Expand Down
2 changes: 1 addition & 1 deletion Sources/String+ANSI.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

extension String {
private nonisolated(unsafe) static let ansiRegex = try! NSRegularExpression(pattern: "\u{1B}(?:[@-Z\\-_]|\\[[0-?]*[ -/]*[@-~])")
private static let ansiRegex = try! NSRegularExpression(pattern: "\u{1B}(?:[@-Z\\-_]|\\[[0-?]*[ -/]*[@-~])")

func withoutANSI() -> String {
let range = NSRange(startIndex ..< endIndex, in: self)
Expand Down

0 comments on commit 0d245e1

Please sign in to comment.