1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Merge pull request #3139 from Kdecherf/2502-tag-case

Ignore tag's case
This commit is contained in:
Jérémy Benoist 2017-09-03 20:25:15 +02:00 committed by GitHub
commit 3af5d41759
6 changed files with 111 additions and 6 deletions

View file

@ -78,7 +78,7 @@ class Tag
*/
public function setLabel($label)
{
$this->label = $label;
$this->label = mb_convert_case($label, MB_CASE_LOWER);
return $this;
}

View file

@ -45,7 +45,7 @@ class TagsAssigner
}
foreach ($tags as $label) {
$label = trim($label);
$label = trim(mb_convert_case($label, MB_CASE_LOWER));
// avoid empty tag
if (0 === strlen($label)) {