Robin Malfait f57c2f90d8 Improve RegEx parser, reduce possibilities as the key for arbitrary properties (#12121)
* optimize handling of RegEx parser results

Previous:
- Copy `results`, for every subsequent result of other `patterns`
- Loop over results to filter out `undefined` values
- Loop over results to map to `clipAtBalancedParens`

Current:
- For each candidate, push the `clipAtBalancedParens(candidate)` into
  the `results`

This way we are not copying existing results, and we are also avoiding
additional loops over the entire array to filter out `undefined` values
and map to `clipAtBalancedParens`.

* do not allow `]` in the first part of arbitrary properties

```
[foo:bar]
 ─┬─
  └── This part cannot contain `]`
```

This is also a very targeted fix for when the arbitrary properties seem
to match a large piece of text, but shouldn't

* add real world tests for parsing candidate strings

* sync package-lock.json

* update changelog
2023-10-23 15:47:22 -04:00
2023-04-25 17:45:45 -04:00
2023-07-13 11:48:35 -04:00
2023-04-25 17:42:58 -04:00
2022-02-05 15:22:47 -05:00
2023-07-13 18:02:02 +02:00
2023-07-13 18:02:02 +02:00
2023-07-13 18:02:02 +02:00
2023-07-13 18:02:02 +02:00
2023-01-20 18:34:29 +01:00

Tailwind CSS

A utility-first CSS framework for rapidly building custom user interfaces.

Build Status Total Downloads Latest Release License


Documentation

For full documentation, visit tailwindcss.com.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discuss Tailwind CSS on GitHub

For casual chit-chat with others using the framework:

Join the Tailwind CSS Discord Server

Contributing

If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.

S
Description
No description provided
Readme MIT
92 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 80%
Rust 17.7%
JavaScript 0.7%
CSS 0.6%
HTML 0.6%
Other 0.4%