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.
Files changed (3) hide show
  1. package/dist/fs.js +1 -1
  2. package/package.json +1 -1
  3. 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(/\/+/, '/').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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utilium",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Typescript utilies",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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(/\/+/, '/').replaceAll(/\/$/, '');
221
+ repo = repo.replaceAll(/\/+/g, '/').replaceAll(/\/$/g, '');
222
222
  const rev = fs
223
223
  .readFileSync(repo + '.git/HEAD')
224
224
  .toString()