Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V9] Remove regex on FileNamer #2587

Merged
merged 1 commit into from
Oct 2, 2021
Merged

Conversation

erikn69
Copy link
Contributor

@erikn69 erikn69 commented Sep 14, 2021

Closes #2586
@francoism90 please review, suggestions?

@francoism90
Copy link
Contributor

francoism90 commented Sep 14, 2021

@erikn69 I'm not an expert, why has the change been made? Doesn't Laravel/Symfony offer any solution? I would simple use a sanitize helper and/or replace all the illegal symbols with -.

Overall your change looks good, but I think @freekmurze should review this.

src/Support/FileNamer/FileNamer.php Outdated Show resolved Hide resolved
src/Support/FileNamer/FileNamer.php Outdated Show resolved Hide resolved
tests/Feature/FileAdder/IntegrationTest.php Show resolved Hide resolved
@erikn69
Copy link
Contributor Author

erikn69 commented Oct 1, 2021

@freekmurze fixed

@freekmurze freekmurze merged commit e0446d4 into spatie:main Oct 2, 2021
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

preg_replace(): Compilation failed: unmatched closing parenthesis at offset 50
3 participants