Skip to content

Commit 19756d5

Browse files
committed
Skip to check Apple prefix
1 parent 91a4cac commit 19756d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13725,7 +13725,7 @@ function getVersion(command = "swift", args = ["--version"]) {
1372513725
}
1372613726
exports.getVersion = getVersion;
1372713727
function versionFromString(subject) {
13728-
const match = subject.match(/Apple\ Swift\ version (?<version>[0-9]+\.[0-9+]+(\.[0-9]+)?)/) || {
13728+
const match = subject.match(/Swift\ version (?<version>[0-9]+\.[0-9+]+(\.[0-9]+)?)/) || {
1372913729
groups: { version: null },
1373013730
};
1373113731
if (!match.groups || !match.groups.version) {

src/get-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function getVersion(
2929

3030
export function versionFromString(subject: string): string | null {
3131
const match = subject.match(
32-
/Apple\ Swift\ version (?<version>[0-9]+\.[0-9+]+(\.[0-9]+)?)/
32+
/Swift\ version (?<version>[0-9]+\.[0-9+]+(\.[0-9]+)?)/
3333
) || {
3434
groups: { version: null },
3535
};

0 commit comments

Comments
 (0)