Commit ddce805c authored by nanahira's avatar nanahira

fix rule again

parent ad958375
Pipeline #14537 passed with stages
in 2 minutes and 50 seconds
......@@ -27,9 +27,9 @@ export class OcrService extends ConsoleLogger {
if (!text) {
return [];
}
const exactMatches = text.match(/QQ:\s?\d{8,10}/g);
const exactMatches = text.match(/QQ:\s*\d{8,10}/g);
if (exactMatches) {
return exactMatches.map((info) => info.replace(/^QQ:\s?/, ''));
return exactMatches.map((info) => info.replace(/^QQ:\s*/, ''));
}
return text.match(/\d{9,10}/g) || [];
} catch (e) {
......
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