# Refactor: deduplicate boundedDisplayText function · lucenx/codexbar-plasma

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

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

Visibility: public

Requested revision: d3a74386090600d7ac16b22ff35a540a58edeb1a

Requested commit: d3a74386090600d7ac16b22ff35a540a58edeb1a

Commit: d3a74386090600d7ac16b22ff35a540a58edeb1a

Tree: 2255360a27d30b72ccf0f0c2bb6b047c1412cea8

Author: google-labs-jules\[bot\]

Committer: google-labs-jules\[bot\]

## Message

```
Refactor: deduplicate boundedDisplayText function

Replaced the local boundedDisplayText function inside contents/ui/main.qml with the shared Normalizer.boundedDisplayText version to improve code maintainability and reduce redundancy. Test strings were also updated to support the changes.

Co-authored-by: Lucenx9 <185146821+Lucenx9@users.noreply.github.com>

```

## Parents

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

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