Zed пре 7 година
родитељ
комит
77879a1450
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/formatters.nim

+ 1 - 1
src/formatters.nim

@@ -6,7 +6,7 @@ import ./types, ./utils
 from unicode import Rune, `$`
 from unicode import Rune, `$`
 
 
 const
 const
-  urlRegex = re"((https?|ftp)://(-\.)?([^\s/?\.#]+\.?)+(/[^\s\)]*)?)"
+  urlRegex = re"((https?|ftp)://(-\.)?([^\s/?\.#]+\.?)+([/\?][^\s\)]*)?)"
   emailRegex = re"([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)"
   emailRegex = re"([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)"
   usernameRegex = re"(^|[\s\.,>])@([A-z0-9_]+)"
   usernameRegex = re"(^|[\s\.,>])@([A-z0-9_]+)"
   picRegex = re"pic.twitter.com/[^ ]+"
   picRegex = re"pic.twitter.com/[^ ]+"