4 ms·
Would there be an issue with just changing the string to be matched to "scala " or " rust"?
by alehul 8y ago
Would there be an issue with just changing the string to be matched to "scala " or " rust"?
- jgtrosh 8y agoThe correct method is probably something like "\<$lang\>"
- meritt 8y agoThere are numerous ways to fix the glaring flaws in this analysis but a very simple approach would be using regex word boundaries, that way it'll work not only for the space but for commas, periods, end-of-line, etc.