@@ -16,8 +16,8 @@ export {
16
16
referrer: string &log &optional ;
17
17
violated_directive: string &log &optional ;
18
18
original_policy: string &optional ;
19
- column_number: count &log &optional ;
20
- line_number: count &log &optional ;
19
+ column_number: string &log &optional ;
20
+ line_number: string &log &optional ;
21
21
blocked_uri: string &log &optional ;
22
22
};
23
23
@@ -48,8 +48,8 @@ function parse_report(buf: string): csp_report
48
48
r$referrer = extract_between (buf, / \" referrer\"\:\" / , / \" / );
49
49
r$violated_directive = extract_between (buf, / \" violated-directive\"\:\" / , / \" / );
50
50
r$original_policy = extract_between (buf, / \" original-policy\"\:\" / , / \" / );
51
- r$column_number = to_count ( extract_between (buf, / \" column-number\" :/ , / ,/ ) );
52
- r$line_number = to_count ( extract_between (buf, / \" line-number\" :/ , / ,/ ) );
51
+ r$column_number = extract_between (buf, / \" column-number\" :/ , / ,/ );
52
+ r$line_number = extract_between (buf, / \" line-number\" :/ , / ,/ );
53
53
r$blocked_uri = extract_between (buf, / \" blocked-uri\"\:\" / , / \" / );
54
54
return r;
55
55
}
0 commit comments