2 ms·
Isn't this what the /s flag is for in your regex? Assuming you are also using /x of course.
by jandrese 7y ago
Isn't this what the /s flag is for in your regex? Assuming you are also using /x of course.
- paulddraper 7y agoSort of. But there's indentation, so I need repetition. And if I'm doing whitespace repetition, there's no great advantage in an autoformatter.
- jandrese 7y agoYou do have to be more liberal with '\s*' or '\s+' instead of just ' ' in your patterns, that is true.