Make debug_sync regex more robust
#1944
+112
−111
Merged