Skip to content

Commit

Permalink
remove unnecessary additional slash
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuatbrown committed Feb 27, 2024
1 parent 2c5d468 commit 5898ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nos/Extensions/String+Markdown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extension String {
// The following pattern uses rules from the Domain Name System page on Wikipedia:
// https://en.wikipedia.org/wiki/Domain_Name_System#Domain_name_syntax,_internationalization
// swiftlint:disable:next line_length
let regexPattern = "(\\s*)((https?://)?([a-zA-Z0-9][-a-zA-Z0-9]{0,62}\\.){1,127}[a-z]{2,63}\\b[-a-zA-Z0-9@:%_\\+.~#?&//=]*)"
let regexPattern = "(\\s*)((https?://)?([a-zA-Z0-9][-a-zA-Z0-9]{0,62}\\.){1,127}[a-z]{2,63}\\b[-a-zA-Z0-9@:%_\\+.~#?&/=]*)"

do {
let regex = try NSRegularExpression(pattern: regexPattern)
Expand Down

0 comments on commit 5898ee4

Please sign in to comment.