browser-wakatime icon indicating copy to clipboard operation
browser-wakatime copied to clipboard

Typo in WakaTimeCore.ts L259

Open toptalo opened this issue 2 years ago • 2 comments

I think there are typo

https://github.com/wakatime/browser-wakatime/blob/c4029f5fee62e69c68fa6731cc5dc4d1c30a07b2/src/core/WakaTimeCore.ts#L259 Should be

const lineRe = new RegExp(cleanLine.replace('.', '\\.').replace('*', '.*')); 

toptalo avatar May 16 '23 17:05 toptalo

Also on line 264 https://github.com/wakatime/browser-wakatime/blob/c4029f5fee62e69c68fa6731cc5dc4d1c30a07b2/src/core/WakaTimeCore.ts#L264

I think should be projectName instead of null

toptalo avatar May 16 '23 17:05 toptalo

Why i am here:

I want to track my activity in google chats URL looks like https://mail.google.com/chat/u/1/?zx=XXXXXXXXX#chat/space/AAAAxxXXXXX ?zx= search param can be suddenly changed. /space/ is ID of chat (project) So I have add asterisk in place of changeable part of URL to my whitelist, like so: https://mail.google.com/chat/u/1/*/space/AAAAxxXXXXX@@projectName

But in WakaTime Icon I see This URL is not in your whitelist

toptalo avatar May 16 '23 18:05 toptalo

Fixed in latest version.

alanhamlett avatar Oct 09 '24 00:10 alanhamlett