Skip to content

Commit

Permalink
🐛 Updater quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Jun 26, 2024
1 parent 1c12a91 commit 95c9e1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
configurationJson: |
{
"template": "#{{CHANGELOG}}\n## 💭 Uncategorized\n#{{UNCATEGORIZED}}",
"pr_template": "- #{{TITLE}} ##{{NUMBER}} ",
"pr_template": "- #{{TITLE}} ##{{NUMBER}}",
"categories": [
{
"title": "## ✨ New Features",
Expand Down
4 changes: 2 additions & 2 deletions Loop/Updater/Updater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class Updater: ObservableObject {
}

var reference: Int?
if let regex = try? NSRegularExpression(pattern: #"#(\d+) "#),
if let regex = try? NSRegularExpression(pattern: #"#(\d+)"#),
let match = regex.firstMatch(in: line, range: NSRange(line.startIndex..., in: line)) {
reference = Int(Range(match.range(at: 1), in: line).flatMap { String(line[$0]) } ?? "")
}
Expand All @@ -188,7 +188,7 @@ class Updater: ObservableObject {

let text = line
.suffix(line.count - 1)
.replacingOccurrences(of: #"#\d+ "#, with: "", options: .regularExpression) // Remove issue number
.replacingOccurrences(of: #"#\d+"#, with: "", options: .regularExpression) // Remove issue number
.replacingOccurrences(of: #"\(@.*\)"#, with: "", options: .regularExpression) // Remove author
.trimmingCharacters(in: .whitespacesAndNewlines)

Expand Down

0 comments on commit 95c9e1a

Please sign in to comment.