samdenty / console-feed

Captures console.log's into a React Component 🔥
https://stackblitz.com/~/github.com/samdenty/console-feed
MIT License
649 stars 106 forks source link

CSS issue with string containing multiple dot-separated words #130

Open rollercodester opened 4 months ago

rollercodester commented 4 months ago

First let me say great library and I'm enjoying/heavily-using it on a showcase site for some open source packages I'm working on. So, thank you.

Issue is applying css style to a string with multiple periods/dots does not style correctly.

For example, console.log('%cnested.dot.path', 'color: green;'); will only color .path portion of the string as green whereas if you look at the log entry in browser console the entire string correctly styles as green.