From 65e771f1ba21cc2ad12169279e93b8a617461542 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 26 Jun 2023 09:57:32 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartstring.git.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index fa46677..2f86a55 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartstring', - version: '4.0.5', + version: '4.0.6', description: 'handle strings in smart ways. TypeScript ready.' } diff --git a/ts/smartstring.git.ts b/ts/smartstring.git.ts index ea73ae3..8a3dc50 100644 --- a/ts/smartstring.git.ts +++ b/ts/smartstring.git.ts @@ -26,7 +26,7 @@ export class GitRepo { * ---------------------------------------------- */ const gitRegex = function (stringArg: string) { const regexString = - /([a-zA-Z0-9\-\.]*)(?:\/|\:)([a-zA-Z0-9\-\.]*)(?:\/)([a-zA-Z0-9\-\.]*)(?:\.git)/; + /([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/; let regexMatches = regexString.exec(stringArg); return regexMatches; };