Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issue 296#343

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
guyonroche merged 3 commits intoexceljs:masterfromholly-weisser:296_new_line
Jun 22, 2017
Merged

Issue 296#343

guyonroche merged 3 commits intoexceljs:masterfromholly-weisser:296_new_line
Jun 22, 2017

Conversation

@holly-weisser
Copy link
Contributor

Let new lines through xmlEncode function. See github issue 296 (#296).

package.json Outdated
{
"name":"exceljs",
"version":"0.4.12",
"version":"0.4.13",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Bumping the package version is managed by the release scripts (npm version patch, etc). Please can you revert this line

xmlEncode:function(text){
// eslint-disable-next-line no-control-regex
returntext.replace(/[<>&'"\x7F\x00-\x08\x0A-\x0C\x0E-\x1F]/g,function(c){
returntext.replace(/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/g,function(c){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Could you also add a unit test for this (in spec/unit/utils/utils.spec.js to ensure \x0a is retained

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Weird that the previous PR that was supposed to fix this same issue wasn't required to have a unit test.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I had a lot more spare time then. Thanks for doing this - I'll publish tonight.

@guyonrocheguyonroche merged commitb3cd02a intoexceljs:masterJun 22, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@guyonrocheguyonrocheguyonroche approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@holly-weisser@guyonroche

[8]ページ先頭

©2009-2025 Movatter.jp