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

pull/export: fixed ppt vs pptx regex ambiguity #588

Merged
merged 1 commit into from
Feb 12, 2016

Conversation

odeke-em
Copy link
Owner

Fixes #583.
Updates #551.

Fixes an ambiguity with the regexes for ppt and pptx.
The problem was that ppt and pptx are unterminated regex-wise
so pptx would get matched as ppt and then undeterministically
also matched as pptx.
This mean that pptx would give two different mimeTypes ie

    "ppt":    "application/vnd.ms-powerpoint",
    "pptx":   "application/vnd.openxmlformats-officedocument.presentationml.presentation"

The fix is to terminate them as ppt$ and pptx$ to properly
differentiate between the two.

Fixes #583.
Updates #551.

Fixes an ambiguity with the regexes for `ppt` and `pptx`.
The problem was that `ppt` and `pptx` are unterminated regex-wise
so `pptx` would get matched as `ppt` and then undeterministically
also matched as `pptx`.
This mean that `pptx` would give two different mimeTypes ie
```json
	"ppt":    "application/vnd.ms-powerpoint",
	"pptx":   "application/vnd.openxmlformats-officedocument.presentationml.presentation"
```

The fix is to terminate them as `ppt$` and `pptx$` to properly
differentiate between the two.
@odeke-em odeke-em merged commit c7ebb65 into master Feb 12, 2016
@odeke-em odeke-em deleted the fix-ppt-pptx-regex-match-ambiguity branch February 12, 2016 09:11
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.

Export native google presentations at ppt and pptx not work
1 participant