diff --git a/src/Ampersand/PatchHelper/Patchfile/Sanitiser.php b/src/Ampersand/PatchHelper/Patchfile/Sanitiser.php index a6ae9ee..eb01d72 100644 --- a/src/Ampersand/PatchHelper/Patchfile/Sanitiser.php +++ b/src/Ampersand/PatchHelper/Patchfile/Sanitiser.php @@ -178,6 +178,7 @@ public static function stripCommentsFromHtml($contents) { // This regular expression will match and remove both single-line comments and multi-line comments // spanning multiple lines. The s flag is used to make the dot (.) match any character, including newlines. + // This does not include knockout templates, as logic is embedded in comments return preg_replace('//s', '', $contents); } }