summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--link.module8
1 files changed, 2 insertions, 6 deletions
diff --git a/link.module b/link.module
index f7f2196..9d25947 100644
--- a/link.module
+++ b/link.module
@@ -420,12 +420,8 @@ function link_validate_link($text) {
')'.
// port number
'(:([0-9]{1,4}))?'.
- // the rest of the path
- "(\/[a-z0-9_\-\.~+%=&,$'():;*@]+)*".
- // anchors
- "#?[a-z0-9_\-\.~+%=&,$'():;*@]*".
- // the query string
- "(\?[a-z0-9+_\-\.\/%=&,$'():;*@]*)?". //)?". //$-_.+*'()
+ // the rest of the path
+ '(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.\/%=&,:]*)?)?'.
// forward slash 0 or 1 times
'(\/)?'.
// end of the expression, case insensitive