elementor / static-html-output

Static HTML Output Plugin for WordPress
https://statichtmloutput.com
The Unlicense
124 stars 33 forks source link

Allow for regex in 'Exclude certain URLs' #170

Closed fmt closed 3 years ago

fmt commented 3 years ago

It would be nice if 'Exclude certain URLs' allowed for regex, ie excluding both /url-with-date-01-01-2021 and /url-with-date-02-01-2021 with /url-with-date-(.*)-2021

leonstafford commented 3 years ago

w00t, thanks @fmt! Merged in and aiming to review include/exclude before next build publishing, which I'm still dragging feet on, sorry!

leonstafford commented 3 years ago

Needs little syntax thing I'll clean up when reviewing:

FILE: /home/circleci/project/src/SiteCrawler.php
----------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
 178 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0
     |       |     found
 178 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0
     |       |     found
 179 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0
     |       |     found
 179 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0
     |       |     found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------

Else, can run composer phpcbf and will autofix

leonstafford commented 3 years ago

(CI on PRs in WP2Static, will get that in line in here, too)