File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 16
16
uses : ' marvinpinto/action-automatic-releases@latest'
17
17
with :
18
18
repo_token : ${{ secrets.CR_PAT_BUILT_WITH_TAILWIND_CSS }}
19
- automatic_release_tag : 1.1.5
19
+ automatic_release_tag : 1.2.0
20
20
draft : false
21
21
prerelease : false
22
22
files : built-with-tailwind-css.zip
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " built-with-tailwind-cs" ,
3
- "version" : " 1.1.5 " ,
3
+ "version" : " 1.2.0 " ,
4
4
"description" : " " ,
5
5
"source" : " popup.html" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -152,27 +152,27 @@ const Engine = {
152
152
fetch ( url )
153
153
. then ( response => response . text ( ) )
154
154
. then ( async text => {
155
- await Engine . analyse ( text , rootDomain ) ;
155
+ await Engine . analyze ( text , rootDomain ) ;
156
156
} )
157
157
. catch ( error => console . log ( rootDomain , error ) ) ;
158
158
} ,
159
159
160
160
/**
161
- * Analyse stylesheets
161
+ * analyze stylesheets
162
162
* @param {Object } request
163
163
*/
164
164
async onStyleSheetRequestComplete ( request ) {
165
165
await Engine . fetchStyleSheet ( request . url , getUrlProtocolPlusHostname ( request . initiator ) ) ;
166
166
} ,
167
167
168
- async analyse ( text , rootDomain ) {
168
+ async analyze ( text , rootDomain ) {
169
169
if ( rootDomain ) {
170
170
// detect tailwindcss
171
171
const regexHasTailwindcss = / (?< ! [ \w \d ] ) (?: t a i l w i n d | t a i l w i n d c s s | - - t w - b g - o p a c i t y | - - t w - h u e - r o t a t e | - - t w - t r a n s l a t e - x | - - t w - r i n g - o f f s e t - w i d t h | - - t w - r i n g - s h a d o w | - - t w - c o n t e n t ) (? ! [ \w \d ] ) / gi;
172
172
const hasTailwindCss = regexHasTailwindcss . test ( text ) ;
173
173
174
174
// detect tailwindcss version
175
- const regexHasVersion = / (?: ^ | \s ) t a i l w i n d c s s \s + ( [ ^ \s ] + ) / g ;
175
+ const regexHasVersion = / (?: ^ | \s ) t a i l w i n d c s s \s + ( [ ^ \s ] + ) / gi ;
176
176
const versions = [ ] ;
177
177
178
178
let match ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Built with Tailwind CSS" ,
3
3
"description" : " Detects Tailwind CSS use in a web page." ,
4
- "version" : " 1.1.5 " ,
4
+ "version" : " 1.2.0 " ,
5
5
"manifest_version" : 3 ,
6
6
"background" : {
7
7
"service_worker" : " background.js"
You can’t perform that action at this time.
0 commit comments