Checking the matching of white-space characters after a line break
elfring opened this issue · 2 comments
elfring commented
I tried another search pattern out.
[Markus_Elfring@fedora lokal]$ printf 'else:\n X\n' | ./comby -stdin -diff -matcher .py 'else::[_\n]:[ ]X' Z
💠May I expect that such a command should generate a simple transformation result?
elfring commented
Do you find another search approach reasonable for such an use case?
[Markus_Elfring@fedora lokal]$ printf 'else:\n X\n' | ./comby -stdin -stdout -matcher .py 'else::[_\n]:[~\s+]X' Success
Success
elfring commented
Will the following test result trigger also any further software development considerations? 🤔
[Markus_Elfring@fedora lokal]$ printf ' if active:\n X\n' | ./comby -stdin -stdout -matcher .py ':[ indentation]:[check~if active]::[_\n]:[ ]X' Surprise
if active:
X