Skip to content

Commit

Permalink
Fix: regex matching func err
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Nov 4, 2023
1 parent 0e255f9 commit 64de0ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhotosProcessor/Views/Features/ModifyMetadataView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct ModifyMetadataView: View {
func customKeyRegex() {
// Feature: Regex Support.
// 如果是正则表达式,那么就用正则表达式去匹配
if (self.processMetadataKey.starts(with: "/") && self.processMetadataKey.ends(with: "/")) {
if (self.processMetadataKey.starts(with: "/")) {
print("[*] \(self.processMetadataKey) is a regex.")
let regex = try! NSRegularExpression(pattern: self.processMetadataKey)
let metadata = processImage.imageMetadata?.metadata
Expand Down

0 comments on commit 64de0ec

Please sign in to comment.