We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9c4eed4 + dc3c431 commit 749c3afCopy full SHA for 749c3af
src/js/script.js
@@ -482,7 +482,7 @@ function checkIsWholePage (elem) {
482
// ------------------------------
483
484
function getTagClass (code, tagName = `body`) {
485
- const regexp = new RegExp(`<${tagName}[^>]*class="(.*)"`);
+ const regexp = new RegExp(`<${tagName}[^>]*class="(.[^"]*)"`);
486
const result = code.match(regexp);
487
488
if (result) {
@@ -496,7 +496,7 @@ function getTagClass (code, tagName = `body`) {
496
497
// eslint-disable-next-line no-unused-vars
498
function runDev () {
499
- const testMarkup = `<html class="page">
+ const testMarkup = `<html class="page" lang="en">
500
<body class="page__body"> <h1 class="page__title">Title</h1>
501
<div class="wrapper wrapper__container">
502
<header class="header">
0 commit comments