Skip to content

fix: handle CRLF in loc.js fence regex and remove dead codeOf (#339) - #693

Open
dhedhialy wants to merge 1 commit into
DietrichGebert:mainfrom
dhedhialy:fix/339-loc-crlf
Open

fix: handle CRLF in loc.js fence regex and remove dead codeOf (#339)#693
dhedhialy wants to merge 1 commit into
DietrichGebert:mainfrom
dhedhialy:fix/339-loc-crlf

Conversation

@dhedhialy

Copy link
Copy Markdown
Contributor

Fixes #339

…chGebert#339)

loc.js regex was missing \r? before \n, so CRLF code fences were
never matched and the metric fell back to counting the whole response.
Also removed dead codeOf() from behavior.js (defined but never called).

Fixes DietrichGebert#339
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.

benchmarks: loc.js misses CRLF code fences and counts the whole response

1 participant