Skip to content

Commit ef1cfe3

Browse files
author
Adamu Muhammad Dankore
committed
word change, and some inprovements
1 parent 7d3d9a9 commit ef1cfe3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: 'marvinpinto/action-automatic-releases@latest'
1717
with:
1818
repo_token: ${{ secrets.CR_PAT_BUILT_WITH_TAILWIND_CSS }}
19-
automatic_release_tag: 1.1.5
19+
automatic_release_tag: 1.2.0
2020
draft: false
2121
prerelease: false
2222
files: built-with-tailwind-css.zip

built-with-tailwind-css.zip

-19 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "built-with-tailwind-cs",
3-
"version": "1.1.5",
3+
"version": "1.2.0",
44
"description": "",
55
"source": "popup.html",
66
"scripts": {

src/background.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,27 +152,27 @@ const Engine = {
152152
fetch(url)
153153
.then(response => response.text())
154154
.then(async text => {
155-
await Engine.analyse(text, rootDomain);
155+
await Engine.analyze(text, rootDomain);
156156
})
157157
.catch(error => console.log(rootDomain, error));
158158
},
159159

160160
/**
161-
* Analyse stylesheets
161+
* analyze stylesheets
162162
* @param {Object} request
163163
*/
164164
async onStyleSheetRequestComplete(request) {
165165
await Engine.fetchStyleSheet(request.url, getUrlProtocolPlusHostname(request.initiator));
166166
},
167167

168-
async analyse(text, rootDomain) {
168+
async analyze(text, rootDomain) {
169169
if (rootDomain) {
170170
// detect tailwindcss
171171
const regexHasTailwindcss = /(?<![\w\d])(?:tailwind|tailwindcss|--tw-bg-opacity|--tw-hue-rotate|--tw-translate-x|--tw-ring-offset-width|--tw-ring-shadow|--tw-content)(?![\w\d])/gi;
172172
const hasTailwindCss = regexHasTailwindcss.test(text);
173173

174174
// detect tailwindcss version
175-
const regexHasVersion = /(?:^|\s)tailwindcss\s+([^\s]+)/g;
175+
const regexHasVersion = /(?:^|\s)tailwindcss\s+([^\s]+)/gi;
176176
const versions = [];
177177

178178
let match;

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Built with Tailwind CSS",
33
"description": "Detects Tailwind CSS use in a web page.",
4-
"version": "1.1.5",
4+
"version": "1.2.0",
55
"manifest_version": 3,
66
"background": {
77
"service_worker": "background.js"

0 commit comments

Comments
 (0)