sylvainpolletvillard / postcss-grid-kiss

A PostCSS plugin to keep CSS grids stupidly simple
https://sylvainpolletvillard.github.io/grid-kiss-playground/index.html
MIT License
1.32k stars 53 forks source link

Fix Text recognition is line based instead of string based #23 #24

Closed YPetremann closed 3 years ago

YPetremann commented 3 years ago

Fix #23

Made getRows regex ungreedy to match correctly rows :

from:

/".*"|'.*'/g

to:

/".*?"|'.*?'/g

alternate syntax: to:

/"[^"]*"|'[^']*'/g
sylvainpolletvillard commented 3 years ago

oh, I'm an idiot, I fixed this issue before even looking at the PR tab 😝

thank you for the PR, I applied the same fix with the lazy quantifier regex in v3.0.2