Skip to content

Commit

Permalink
Merge pull request #165 from wakatime/bugfix/path-with-spaces
Browse files Browse the repository at this point in the history
Get file path without backslashes when contains spaces
  • Loading branch information
alanhamlett authored Aug 25, 2023
2 parents 14f1426 + a17f438 commit 80829d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions WakaTime/Extensions/URLExtension.swift

This file was deleted.

4 changes: 2 additions & 2 deletions WakaTime/Watcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class Watcher: NSObject {

self.heartbeatEventHandler?.handleHeartbeatEvent(
app: app,
entity: path.formatted(),
entity: path.path,
entityType: EntityType.file,
language: nil,
category: self.isBuilding ? Category.building : Category.coding,
Expand Down Expand Up @@ -290,7 +290,7 @@ private func observerCallback(
else { return }
this.heartbeatEventHandler?.handleHeartbeatEvent(
app: app,
entity: currentPath.formatted(),
entity: currentPath.path,
entityType: EntityType.file,
language: nil,
category: this.isBuilding ? Category.building : Category.coding,
Expand Down

0 comments on commit 80829d3

Please sign in to comment.