fix(core): update

This commit is contained in:
Philipp Kunz 2023-06-26 09:57:32 +02:00
parent 5825a602ed
commit 65e771f1ba
2 changed files with 2 additions and 2 deletions

View File

@ -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.'
}

View File

@ -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;
};