Commit 3ae86dcb authored by chechunchi's avatar chechunchi

fix parseCardInfo

parent 60488335
Pipeline #30306 passed with stages
in 8 minutes and 30 seconds
......@@ -40,7 +40,7 @@ class Forbidden {
function parseCardInfo(
input: string,
): { cardId: number; limitCount: number } | null {
const match = input.match(/^(\d+)\s+(\d+)\s+--/);
const match = input.match(/^(\d+)\s+(\d+)/);
if (match) {
const cardId = parseInt(match[1]);
const limitCount = parseInt(match[2]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment