Issue #275: Activate Syntax Highlighting with Coderay in Asciidoc templates
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
[source,java]
|
||||
----
|
||||
public static bool isUsernameValid(string username) {
|
||||
RegEx r = new Regex(“^[A-Za-z0-9]{16}$”);
|
||||
RegEx r = new Regex("^[A-Za-z0-9]{16}$");
|
||||
return r.isMatch(username);
|
||||
}
|
||||
|
||||
@ -10,10 +10,10 @@ public static bool isUsernameValid(string username) {
|
||||
PreparedStatement ps = null;
|
||||
RecordSet rs = null;
|
||||
try {
|
||||
pUserName = request.getParameter(“UserName”);
|
||||
pUserName = request.getParameter("UserName");
|
||||
if ( isUsernameValid (pUsername);
|
||||
ps = conn.prepareStatement(“SELECT * FROM user_table
|
||||
WHERE username = ? ”);
|
||||
ps = conn.prepareStatement("SELECT * FROM user_table
|
||||
WHERE username = ? ");
|
||||
ps.setString(1, pUsername);
|
||||
rs = ps.execute();
|
||||
if ( rs.next() ) {
|
||||
|
Reference in New Issue
Block a user