Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse._parsedParameters: do not use helpers.unescapedIndexOf() #536

Merged

Conversation

dilyanpalauzov
Copy link
Contributor

iCalendar and vCard parameters do not use \ as escape character in the property parameter values, hence cn="\"X" is not a quote X, but invalid. The proper escape character is ^ per RFC 6868. This change replaces helpers.unescapedIndexOf(x,…) with x.indexOf(…) in order not to count \ as escape character.

dilyanpalauzov added a commit to dilyanpalauzov/ical.js that referenced this pull request Sep 18, 2022
iCalendar and vCard parameters do not use \ as escape character in the
property parameter values, hence cn="\"X" is not a quote X, but invalid.
The proper escape character is ^ per RFC 6868.  This change replaces
helpers.unescapedIndexOf(x,…) with x.indexOf(…) in order not to

kewisch#536
@dilyanpalauzov dilyanpalauzov force-pushed the parse_parameters_unescapedIndexOf branch from 7d4eccc to aafdcb7 Compare September 18, 2022 09:42
@coveralls
Copy link

coveralls commented Sep 18, 2022

Pull Request Test Coverage Report for Build 8676396508

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.024%

Totals Coverage Status
Change from base Build 8676356879: 0.0%
Covered Lines: 9288
Relevant Lines: 9459

💛 - Coveralls

@dilyanpalauzov dilyanpalauzov force-pushed the parse_parameters_unescapedIndexOf branch from aafdcb7 to 53a918d Compare November 29, 2022 09:37
@dilyanpalauzov
Copy link
Contributor Author

Now updated to ES6.

dilyanpalauzov added a commit to dilyanpalauzov/ical.js that referenced this pull request Nov 29, 2022
iCalendar and vCard parameters do not use \ as escape character in the
property parameter values, hence cn="\"X" is not a quote X, but invalid.
The proper escape character is ^ per RFC 6868.  This change replaces
helpers.unescapedIndexOf(x,…) with x.indexOf(…) in order not to

kewisch#536
ES6-ready
dilyanpalauzov added a commit to dilyanpalauzov/ical.js that referenced this pull request Nov 29, 2022
iCalendar and vCard parameters do not use \ as escape character in the
property parameter values, hence cn="\"X" is not a quote X, but invalid.
The proper escape character is ^ per RFC 6868.  This change replaces
helpers.unescapedIndexOf(x,…) with x.indexOf(…) in order not to

kewisch#536
@titanism titanism mentioned this pull request Feb 16, 2024
dilyanpalauzov added a commit to dilyanpalauzov/ical.js that referenced this pull request Apr 13, 2024
iCalendar and vCard parameters do not use \ as escape character in the
property parameter values, hence cn="\"X" is not a quote X, but invalid.
The proper escape character is ^ per RFC 6868.  This change replaces
helpers.unescapedIndexOf(x,…) with x.indexOf(…) in order not to

kewisch#536
ES6-ready
iCalendar and vCard parameters do not use \ as escape character in the
property parameter values, hence cn="\"X" is not a quote X, but invalid.
The proper escape character is ^ per RFC 6868.  This change replaces
helpers.unescapedIndexOf(x,…) with x.indexOf(…) in order not to
@kewisch kewisch force-pushed the parse_parameters_unescapedIndexOf branch from 53a918d to 9c85b29 Compare April 13, 2024 21:33
@kewisch kewisch merged commit 5f61c41 into kewisch:main Apr 13, 2024
7 checks passed
@kewisch kewisch mentioned this pull request Apr 13, 2024
@dilyanpalauzov dilyanpalauzov deleted the parse_parameters_unescapedIndexOf branch April 14, 2024 13:11
dilyanpalauzov added a commit to dilyanpalauzov/ical.js that referenced this pull request Apr 20, 2024
iCalendar and vCard parameters do not use \ as escape character in the
property parameter values, hence cn="\"X" is not a quote X, but invalid.
The proper escape character is ^ per RFC 6868.  This change replaces
helpers.unescapedIndexOf(x,…) with x.indexOf(…) in order not to

kewisch#536
ES6-ready
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants