pr0pz / scene-release-parser-php

A library for parsing scene release names into simpler, reusable data.
8 stars 2 forks source link

Title returns nothing when it contains the character & #10

Closed flowan closed 1 month ago

flowan commented 1 month ago

Hi,

When a title contains the character & the title will be empty.

Parsing the title for example This.&.That.2014.etc.etc return nothing.

A possible solution would be to add the & character to the title regex like so;

const REGEX_TITLE = '([\w\\&.()-]+)';

I tested this with a couple of scene releases and it works.

pr0pz commented 1 month ago

Hi flowan and thanks for the bug report. I'll make some tests and merge the PR if everything is working as expected :)

pr0pz commented 1 month ago

I'm finally on it and gonna release new version soon

pr0pz commented 1 month ago

Fixed with newest release:

https://github.com/pr0pz/scene-release-parser-php/releases/tag/v1.5.0