JSFiddle - React, Tailwind, and code Playground

by mrbinky3000

JavaScript

var string = '<span style="l asdf  aine-height:"></span>';
var re = /(color: inherit; )*line-height\s*:\s*[\d\.]+/;
if (re.test(string)) {
    console.log('yep');
} else {
    console.log('nope');
}