Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Apr 23, 2022
1 parent 5e970ae commit 4583b46
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FSNotes/Helpers/NotesTextProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ public class NotesTextProcessor {
_range.length = _range.length - 4

let appLink = attributedString.mutableString.substring(with: _range)
guard !appLink.startsWith(string: "`") else { return }

if let link = appLink.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) {

Expand Down Expand Up @@ -1368,7 +1369,7 @@ public class NotesTextProcessor {

// MARK: App url

fileprivate static let appUrlPattern = "(\\[\\[)(.+?[\\[\\]]*)(\\]\\])"
fileprivate static let appUrlPattern = "([^`]\\[\\[)(.+?[\\[\\]]*)(\\]\\])"

public static let appUrlRegex = MarklightRegex(pattern: appUrlPattern, options: [.anchorsMatchLines])

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4583b46

Please sign in to comment.