Skip to content

Fix handling of spaces in query regex#5435

Open
emrekultursay wants to merge 1 commit intogoogle:mainfrom
emrekultursay:fix_appstartup_query
Open

Fix handling of spaces in query regex#5435
emrekultursay wants to merge 1 commit intogoogle:mainfrom
emrekultursay:fix_appstartup_query

Conversation

@emrekultursay
Copy link
Copy Markdown
Contributor

@emrekultursay emrekultursay commented Apr 10, 2026

The '\s' doesn't seem to behave as expected in regex, causing filters. For instance when the slice name is as follows:

location=/data/app/.../oat/arm64/split_MeasurementDynamite_installtime.vdex status=up-to-date filter=verify reason=vdex

...then we get filter=verify rea because the regex reads until it sees the letter 's', not whitespace.

Before:
before

After:
after

The '\\s' doesn't seem to behave as expected in regex, causing
filters. For instance when the slice name is as follows:

```
location=/data/app/.../oat/arm64/split_MeasurementDynamite_installtime.vdex status=up-to-date filter=verify reason=vdex
```

...then we get `filter=verify rea` because the regex reads until it sees the letter 's', not whitespace.
@LalitMaganti
Copy link
Copy Markdown
Member

a) feels like we should fix the underlying issue here rather than working around.
b) this might have something to do with the changes to start using RE2. @sashwinbalaji should look into that.

@emrekultursay
Copy link
Copy Markdown
Contributor Author

SGTM. I'll let you handle the root cause then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants