Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

chore: refactor label parser#1032

Open
sylwit wants to merge 2 commits intoprometheus:master from
sylwit:feature/refactor_parser
Open

chore: refactor label parser #1032
sylwit wants to merge 2 commits intoprometheus:master from
sylwit:feature/refactor_parser

Conversation

@sylwit
Copy link

@sylwit sylwit commented May 13, 2024

Refactor label parser to make it more readable and and faster

Signed-off-by: Sylvain Witmeyer <sylvain.witmeyer@gmail.com>
@sylwit sylwit force-pushed the feature/refactor_parser branch from 4023449 to cc86745 Compare May 13, 2024 23:52
return ESCAPING_RE.sub(replace_escape_sequence, s)


def _is_character_escaped(s: str, charpos: int) -> bool:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is moved to openmetrics/parser.py

@sylwit sylwit force-pushed the feature/refactor_parser branch from a84f6d3 to 7205ac5 Compare May 14, 2024 03:06
Signed-off-by: Sylvain Witmeyer <sylvain.witmeyer@gmail.com>
@sylwit sylwit force-pushed the feature/refactor_parser branch from 7205ac5 to 139d601 Compare May 14, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /