We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d01368 commit 7c67b2aCopy full SHA for 7c67b2a
src/main/java/com/nativelibs4java/velocity/Utils.java
@@ -31,7 +31,7 @@ protected static String processComments(String source, Function<String, String>
31
protected static String quoteSharpsInComments(String source) {
32
return processComments(source, new Function<String, String>() {
33
public String apply(String f) {
34
- return f.replaceAll("#", "\\\\#");
+ return f.replaceAll("(?<=\\w)#", "\\\\#");
35
}
36
});
37
0 commit comments