Przeglądaj źródła

copy/paste prevention

Gildas 7 lat temu
rodzic
commit
293d58cb15
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/single-file/serializer.js

+ 1 - 1
lib/single-file/serializer.js

@@ -120,7 +120,7 @@ this.serializer = this.serializer || (() => {
 				value = Array.from(element.classList).map(className => className.trim()).join(" ");
 			}
 			value = value.replace(/&/g, "&").replace(/\u00a0/g, " ").replace(/"/g, """);
-			const invalidUnquotedValue = !value.match(/^[^ \t\n\f\r'`=<>]+$/);
+			const invalidUnquotedValue = !value.match(/^[^ \t\n\f\r'"`=<>]+$/);
 			content += " ";
 			if (!attribute.namespace) {
 				content += name;