Skip to content

Commit a17ae11

Browse files
Allow any word char in tags, not just a-z
1 parent ab6e08c commit a17ae11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VideoPlatformsParser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function get($url)
7171
/* If there is not tags then generate own */
7272
if (empty($info['tags']) && !empty($info['title'])) {
7373
$info['tags'] = explode(' ', $info['title']);
74-
$info['tags'] = preg_replace('/[^a-zA-Z0-9 ]+/', '', $info['tags']);
74+
$info['tags'] = preg_replace('/([^\w ]|_)/u', '', $info['tags']);
7575
$info['tags'] = array_map('trim', $info['tags']);
7676
$info['tags'] = array_filter($info['tags'], function($v) { return (strlen($v) > 2) && (strlen($v) < 15); });
7777
$info['tags'] = array_unique($info['tags']);

0 commit comments

Comments
 (0)