-
Notifications
You must be signed in to change notification settings - Fork 123
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
fix routes regular expression for windows #729
Conversation
Hi, |
Did you try to start tests on windows? I have problems with TestAddAfter
It is because in windows typical situation that newline is "\r\n", not "\n" |
It seems you configured your Git for Windows client to use
Then reload your IDE. |
This is a solution to the problem, thank you. However, there are no requirements in the Shield installation guide stating that you need LF instead of CRLF. There is also no requirement to configure git in any specific way. And the user might very well have a configuration with CRLF |
@GeorgKott Shield is an official package, so we assume that all the rules in CI4 apply to Shield as well. To be honest I'm not sure we need to explain all the details in the Shield docs. If you think it needs clarification, I'm fine with sending a PR for the docs. |
@GeorgKott If you are working with open source PHP projects that caters all OS, then it is expected that you have a unified line ending, which is LF. When you install Git for Windows, you should have seen that option for line endings. This is made so that the project is interoperational with all OS. |
Thank you for your comments. I closed this pull request |
Hello! I had a problem with change route file while setup Shield on Windows. It was because i have "\r\n", not "\n". Route file has not changed.
This is my fix. What do you thin about this, thank you