Skip to content

Commit ecccfef

Browse files
authored
String-only metrics need to be returned as JSON or they won't be processed correctly (#181)
1 parent ea44683 commit ecccfef

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
/**
2-
* IMPORTANT: Do not modify this file directly! It is generated by
3-
* bin/library-detector.js
4-
*/
5-
return '6.1.0';
1+
return JSON.stringify('6.1.0');

0 commit comments

Comments
 (0)