File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ function checkIsWholePage (elem) {
482
482
// ------------------------------
483
483
484
484
function getTagClass ( code , tagName = `body` ) {
485
- const regexp = new RegExp ( `<${ tagName } [^>]*class="(.*)"` ) ;
485
+ const regexp = new RegExp ( `<${ tagName } [^>]*class="(.[^"] *)"` ) ;
486
486
const result = code . match ( regexp ) ;
487
487
488
488
if ( result ) {
@@ -496,7 +496,7 @@ function getTagClass (code, tagName = `body`) {
496
496
497
497
// eslint-disable-next-line no-unused-vars
498
498
function runDev ( ) {
499
- const testMarkup = `<html class="page">
499
+ const testMarkup = `<html class="page" lang="en" >
500
500
<body class="page__body"> <h1 class="page__title">Title</h1>
501
501
<div class="wrapper wrapper__container">
502
502
<header class="header">
You can’t perform that action at this time.
0 commit comments