@@ -18,7 +18,7 @@ function asObjectSafe(value: any): object {
// Handle pre-existing objects
if (typeof value === "object") {
- return Object.assign({}, value)
+ return { ...value }
}
return {}
@@ -48,7 +48,7 @@ rel/path/to/helper.ts
│----
*/
-const isWindows = /^win/.test(process.platform)
+const isWindows = process.platform.startsWith("win")
const binName = isWindows ? "rg.exe" : "rg"
interface SearchFileResult {