Skip to content

Commit

Permalink
make new name reflected in all repo documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Trapfether committed Oct 7, 2023
1 parent 63f01d2 commit da71f1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing

Headwind is open-source and contributions are always welcome. If you're interested in submitting a pull request, please take a moment to review this document.
Tailwind Raw Reorder is open-source and contributions are always welcome. If you're interested in submitting a pull request, please take a moment to review this document.

## Pull requests

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Tailwind Raw Reorder can sort individual files by running 'Sort Tailwind CSS Cla

Any breakpoints or unknown classes will be moved to the end of the class list, whilst duplicate classes will be removed.

### `headwind.classRegex`:
### `tailwind-raw-reorder.classRegex`:

An object with language IDs as keys and their values determining the regex to search for Tailwind CSS classes.
The default is located in [package.json](package.json) but this can be customized to suit your needs.
Expand All @@ -37,7 +37,7 @@ There can be multiple capturing groups, that should only contain a string with T
Example from `package.json`:

```json
"headwind.classRegex": {
"tailwind-raw-reorder.classRegex": {
"html": "\\bclass\\s*=\\s*[\\\"\\']([_a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\']",
"javascriptreact": "(?:\\bclassName\\s*=\\s*[\\\"\\']([_a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\'])|(?:\\btw\\s*`([_a-zA-Z0-9\\s\\-\\:\\/]*)`)"
}
Expand All @@ -50,7 +50,7 @@ A multi-step regex can be specified by using an array of regexes to be executed
Example from `package.json`:

```js
"headwind.classRegex": {
"tailwind-raw-reorder.classRegex": {
"javascript": [
"(?:\\bclass(?:Name)?\\s*=\\s*(?:{([\\w\\d\\s_\\-:/${}()[\\]\"'`,]+)})|([\"'`][\\w\\d\\s_\\-:/]+[\"'`]))|(?:\\btw\\s*(`[\\w\\d\\s_\\-:/]+`))",
"(?:[\"'`]([\\w\\d\\s_\\-:/${}()[\\]\"']+)[\"'`])"
Expand All @@ -73,7 +73,7 @@ Optionally a configuration object can be passed to specify additional options fo
Example from `package.json`:

```js
"headwind.classRegex": {
"tailwind-raw-reorder.classRegex": {
"jade": [
{
"regex": "\\.([\\._a-zA-Z0-9\\-]+)",
Expand Down

0 comments on commit da71f1b

Please sign in to comment.