File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ local comment = P {
3434 ccontent = ctext + quoted_pair + V " comment" ;
3535 comment = P " (" * (FWS ^- 1 * V " ccontent" )^ 0 * FWS ^- 1 * P " )" ;
3636}
37- local CFWS = ((FWS ^- 1 * comment )^ 1 * FWS ^- 1 + FWS ) / function () end
37+ local CFWS = ((FWS ^- 1 * comment )^ 1 * FWS ^- 1 + FWS ) / 0
3838
3939-- Atom
4040local specials = S [=[ ()<>@,;:\".[]]=]
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ local C = lpeg.C
99local P = lpeg .P
1010
1111-- discard captures from scheme, host, port and just get whole string
12- local serialized_origin = C (uri .scheme * P " ://" * uri .host * (P " :" * uri .port )^- 1 / function () end )
12+ local serialized_origin = C (uri .scheme * P " ://" * uri .host * (P " :" * uri .port )^- 1 / 0 )
1313local origin_list = serialized_origin * (core .SP * serialized_origin )^ 0
1414local origin_list_or_null = P " null" + origin_list
1515local Origin = http_core .OWS * origin_list_or_null * http_core .OWS
Original file line number Diff line number Diff line change @@ -77,6 +77,6 @@ local irregular = P"en-GB-oed"
7777
7878M .Language_Tag = C ((M .langtag
7979 + M .privateuse
80- + irregular ) / function () end ) -- capture the whole tag. throws away decomposition
80+ + irregular ) / 0 ) -- capture the whole tag. throws away decomposition
8181
8282return M
You can’t perform that action at this time.
0 commit comments