mirror of
https://github.com/google/nomulus
synced 2026-01-08 07:11:44 +00:00
Prefer re2 over java.util.regex
Java's stock regex implementation doesn't guarantee linear time complexity which makes it a security liability. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=121159875
This commit is contained in:
@@ -17,13 +17,14 @@ package google.registry.tools.params;
|
||||
import static com.google.common.base.Preconditions.checkArgument;
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import com.google.re2j.Pattern;
|
||||
|
||||
import com.beust.jcommander.ParameterException;
|
||||
|
||||
import java.net.URI;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** Filesystem path CLI parameter converter/validator. */
|
||||
public class PathParameter extends ParameterConverterValidator<Path> {
|
||||
|
||||
Reference in New Issue
Block a user