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) {
482482// ------------------------------
483483
484484function getTagClass ( code , tagName = `body` ) {
485- const regexp = new RegExp ( `<${ tagName } [^>]*class="(.*)"` ) ;
485+ const regexp = new RegExp ( `<${ tagName } [^>]*class="(.[^"] *)"` ) ;
486486 const result = code . match ( regexp ) ;
487487
488488 if ( result ) {
@@ -496,7 +496,7 @@ function getTagClass (code, tagName = `body`) {
496496
497497// eslint-disable-next-line no-unused-vars
498498function runDev ( ) {
499- const testMarkup = `<html class="page">
499+ const testMarkup = `<html class="page" lang="en" >
500500 <body class="page__body"> <h1 class="page__title">Title</h1>
501501 <div class="wrapper wrapper__container">
502502 <header class="header">
You can’t perform that action at this time.
0 commit comments