Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

DecimalTurn
Copy link
Contributor

Description

Similarly to #7240, this PR removes an instance of a possessive qualifier. Possessive qualifiers aren't supported in re2, hence this PR increases portability of Linguist's heuristics.

Removing this from the NASL heuristic could theoretically reduce performance, but due to the fact that the possessive qualifier is close to the end of the regex and that the structure of the regex prevents multple branching while backtracking, this change should be unnoticable in practice.

Note that with this PR and #7242, Linguist's heuristics should now be fully compatible with RE2's syntax except for Vim Help File, Hosts File and Adblock Filter List. 🎉

Checklist:

NA

@DecimalTurn DecimalTurn requested a review from a team as a code owner February 24, 2025 16:22
@lildude lildude added this pull request to the merge queue Mar 5, 2025
Merged via the queue into github-linguist:main with commit 970ec84 Mar 5, 2025
5 checks passed
@DecimalTurn DecimalTurn deleted the possessive-qualifiers branch March 5, 2025 14:04
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jul 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants