utilium 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fs.js +1 -1
- package/package.json +1 -1
- package/src/fs.ts +1 -1
package/dist/fs.js
CHANGED
@@ -152,7 +152,7 @@ export class FolderMap extends FileMap {
|
|
152
152
|
}
|
153
153
|
}
|
154
154
|
export function gitCommitHash(repo = '.') {
|
155
|
-
repo = repo.replaceAll(
|
155
|
+
repo = repo.replaceAll(/\/+/g, '/').replaceAll(/\/$/g, '');
|
156
156
|
const rev = fs
|
157
157
|
.readFileSync(repo + '.git/HEAD')
|
158
158
|
.toString()
|
package/package.json
CHANGED
package/src/fs.ts
CHANGED
@@ -218,7 +218,7 @@ export class FolderMap extends FileMap<string> {
|
|
218
218
|
}
|
219
219
|
|
220
220
|
export function gitCommitHash(repo: string = '.'): string {
|
221
|
-
repo = repo.replaceAll(
|
221
|
+
repo = repo.replaceAll(/\/+/g, '/').replaceAll(/\/$/g, '');
|
222
222
|
const rev = fs
|
223
223
|
.readFileSync(repo + '.git/HEAD')
|
224
224
|
.toString()
|