Skip to content

Commit

Permalink
Fix version pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
slskiba committed Jul 1, 2024
1 parent df74a36 commit 9e74ee6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.devonfw.tools.ide.tool.npm;

import java.util.regex.Pattern;

import com.devonfw.tools.ide.url.model.folder.UrlVersion;
import com.devonfw.tools.ide.url.updater.WebsiteUrlUpdater;

import java.util.regex.Pattern;

/**
* {@link WebsiteUrlUpdater} for npm (node package manager).
*/
Expand All @@ -31,7 +31,7 @@ protected String getVersionUrl() {
@Override
protected Pattern getVersionPattern() {

return Pattern.compile("npm-(\\d\\.\\d{1,2}\\.\\d+)");
return Pattern.compile("npm-(\\d{1,2}\\.\\d{1,2}\\.\\d+)");
}

@Override
Expand Down

0 comments on commit 9e74ee6

Please sign in to comment.