Skip to content

Commit 57a24e1

Browse files
author
Marco Pereirinha
committed
Add quotes to split URLs on regex
1 parent c967917 commit 57a24e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/class-utils.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ public static function is_admin() {
522522
public static function extract_urls( $content ) {
523523
preg_match_all(
524524
"#([\"']?)("
525-
. '(?:([\w-]+:)?//?)'
526-
. '[^\s()<>]+'
525+
. '(?:[\w-]+:)?//?'
526+
. '[^\s()<>"\']+'
527527
. '[.]'
528528
. '(?:'
529529
. '\([\w\d]+\)|'

0 commit comments

Comments
 (0)