hydephp / publications

Upcoming Publications Feature - HydePHP Extension
MIT License
0 stars 0 forks source link

Update make:publicationTags command to not add empty tags #8

Closed caendesilva closed 1 year ago

caendesilva commented 1 year ago

It's easy enough to accidentally add some extra newlines when running the command. For exmaple consider the following input

foo

bar
baz

This creates four tags, foo, '', bar, and baz.

It should be easy enough to filter out empty entries before proceeding. Because I don't think the following generated Yaml is too helpful:

test:
    - foo
    - ''
    - bar
    - baz
caendesilva commented 1 year ago

Resolved in https://github.com/hydephp/develop/pull/1367