Closed euler2718 closed 5 years ago
for clarification, I'm attaching the MATCH being printed to console. This is a basic serverless app created with sls create ... -t aws-python3
seems like the conversion from python3 dict to json could be causing this difference?
Your Regular Expression is not correct. Tested on Linux and Windows.
Your Regular Expression is not correct. Tested on Linux and Windows.
It's a pretty basic regex that just adds the \r switch - can you be more specific?
I see that you have altered this for the \r? Fine. Doesn't it match either way?
If you really want to be a stickler on how if matches, I guess this might be the way to go...
--SO (\r?\n) will cover Unix and Windows. You'll need something more complex, like (\r\n|\r|\n), if you want to match old Mac too.
Nice one ;)
match wasn't occurring in python3 (windows 10) because the \n was replaced with \r. I added the optional switch. My colleague did not have trouble with python2.7, and the change was seemingly unnecessary