From 987c8c09943ac86ed1d0abcf69771b5e16491c99 Mon Sep 17 00:00:00 2001 From: Andy Damevin Date: Mon, 11 Nov 2024 11:04:37 +0100 Subject: [PATCH] Allow _ in selectedpath (#263) --- .../java/io/quarkiverse/roq/generator/runtime/SelectedPath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roq-generator/runtime/src/main/java/io/quarkiverse/roq/generator/runtime/SelectedPath.java b/roq-generator/runtime/src/main/java/io/quarkiverse/roq/generator/runtime/SelectedPath.java index 52b25eb9..7119cab2 100644 --- a/roq-generator/runtime/src/main/java/io/quarkiverse/roq/generator/runtime/SelectedPath.java +++ b/roq-generator/runtime/src/main/java/io/quarkiverse/roq/generator/runtime/SelectedPath.java @@ -6,7 +6,7 @@ public record SelectedPath(String path, String outputPath, PageSource source) { - private static final Pattern NON_FILE_CHARS = Pattern.compile("[^a-zA-Z0-9\\\\/.]"); + private static final Pattern NON_FILE_CHARS = Pattern.compile("[^a-zA-Z0-9_\\\\/.\\-]"); private SelectedPath(SelectedPathBuilder builder) { this(builder.path, builder.outputPath, builder.source);