mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve wall filter
This commit is contained in:
@@ -360,7 +360,11 @@ public class Lexer {
|
||||
}
|
||||
return;
|
||||
case '#':
|
||||
scanVariable();
|
||||
scanSharp();
|
||||
if ((token() == Token.LINE_COMMENT || token() == Token.MULTI_LINE_COMMENT) && skipComment) {
|
||||
bufPos = 0;
|
||||
continue;
|
||||
}
|
||||
return;
|
||||
case '.':
|
||||
scanChar();
|
||||
@@ -648,6 +652,10 @@ public class Lexer {
|
||||
|
||||
stringVal = subString(mark + 1, bufPos);
|
||||
}
|
||||
|
||||
public void scanSharp() {
|
||||
scanVariable();
|
||||
}
|
||||
|
||||
public void scanVariable() {
|
||||
if (ch != '@' && ch != ':' && ch != '#' && ch != '$') {
|
||||
|
||||
Reference in New Issue
Block a user