# perf\(providers\): use a single regex for unsupported descriptor messages \(\#442\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/697d2696593970648597e33d61a1e52ae6455ac7)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 697d2696593970648597e33d61a1e52ae6455ac7

Requested commit: 697d2696593970648597e33d61a1e52ae6455ac7

Commit: 697d2696593970648597e33d61a1e52ae6455ac7

Tree: 120c2cd33a79c367ff59fffdee3ea29ead2f2a05

Author: Simone

Committer: GitHub

## Message

```
perf(providers): use a single regex for unsupported descriptor messages (#442)

Replace sequential indexOf checks in isDescriptorUnsupportedMessage
with a single compiled regular expression test while preserving the
fast-path text guard.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Lucenx9 <185146821+Lucenx9@users.noreply.github.com>
```

## Parents

- [8b920409819569d737effe2ceff2def5def2ef2f](https://git.cafe/lucenx/codexbar-plasma/commit/8b920409819569d737effe2ceff2def5def2ef2f?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/697d2696593970648597e33d61a1e52ae6455ac7?format=markdown)
