Skip to content

Fix missing extracted classes containing . in Clojure - #18038

Merged
RobinMalfait merged 3 commits into
mainfrom
fix/issue-17760
May 15, 2025
Merged

RobinMalfait merged 3 commits into
mainfrom
fix/issue-17760

Conversation

@RobinMalfait

@RobinMalfait RobinMalfait commented May 15, 2025 •

Copy link
Copy Markdown
Contributor

This PR fixes an issue in the Clojure pre-processor where candidates including . characters were not extracted correctly.

The solution here is to only replace the . with a when the . is not surrounded by numbers. This means that:

:.foo.bar

Becomes

: foo bar

But

:.gap-1.5.flex

Becomes

: gap-1.5 flex

This way the gap-1.5 is correctly extracted.

Test plan

  1. Added a test for this case
  2. Tested this in the extractor tool as well. Notice how the gap-1.5 is correctly extracted here.
image

Fixes: #17760

@RobinMalfait
RobinMalfait requested a review from a team as a code owner May 15, 2025 12:06
@RobinMalfait RobinMalfait changed the title Fix extraction of candidates with . in Clojure Fix missing extracted classes containing . in Clojure May 15, 2025
@RobinMalfait
RobinMalfait enabled auto-merge (squash) May 15, 2025 12:12
@eneroth

eneroth commented Jun 18, 2025 •

Copy link
Copy Markdown
Contributor

Thanks @RobinMalfait, can confirm that these things work well now!

I ran into another issue with pseudo classes though. Eg. :first:lg:pl-8 doesn't seem to be picked up. I'll open an issue for it.

By the way, the debugger that you're sharing screenshots from: is it accessible publicly? It would be great to try verify things like this before reporting them.

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.

Candidate extraction from Clojure/Script files sometimes produce false negatives

3 participants