Skip to content

Commit ec6b4b2

Browse files
committed
String-only metrics need to be returned as JSON or they won't be processed correctly
1 parent ea44683 commit ec6b4b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/doctype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ if ( dt ) {
1313
}
1414
}
1515
/* eslint-disable-next-line no-control-regex */
16-
return sDoctype.replace(/[\x00-\x1F\x80-\xFF]/g, "").toString();
16+
return JSON.stringify(sDoctype.replace(/[\x00-\x1F\x80-\xFF]/g, "").toString());

dist/lib-detector-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
* IMPORTANT: Do not modify this file directly! It is generated by
33
* bin/library-detector.js
44
*/
5-
return '6.1.0';
5+
return JSON.stringify('6.1.0');

0 commit comments

Comments
 (0)