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