fix(build): correct the regular expression removing dev snippets

Related to: CAM-3027