mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-11-11 03:32:57 +08:00
Compare commits
2 Commits
b569a4ca49
...
a6b9b732bc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6b9b732bc | ||
| fc9d2d6949 |
@ -72,8 +72,15 @@ export class Logger {
|
||||
let paramNum = '';
|
||||
while (++pointer < text.length) {
|
||||
const char = text[pointer];
|
||||
const next = text[pointer + 1];
|
||||
|
||||
if (char === '$' && text[pointer - 1] !== '\\') {
|
||||
if (char === '\\' && next === '$') {
|
||||
str += '$';
|
||||
pointer++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (char === '$' && nums.has(next)) {
|
||||
inParam = true;
|
||||
continue;
|
||||
}
|
||||
@ -82,7 +89,7 @@ export class Logger {
|
||||
if (nums.has(char)) {
|
||||
paramNum += char;
|
||||
}
|
||||
if (!nums.has(text[pointer + 1])) {
|
||||
if (!nums.has(next)) {
|
||||
inParam = false;
|
||||
const num = Number(paramNum);
|
||||
paramNum = '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user