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

add 'Else' to the last line of the algorithm #18

Closed
PaulJeong14 opened this issue Dec 7, 2016 · 1 comment
Closed

add 'Else' to the last line of the algorithm #18

PaulJeong14 opened this issue Dec 7, 2016 · 1 comment

Comments

@PaulJeong14
Copy link

PaulJeong14 commented Dec 7, 2016

I think 'Else' should be added to the last line of the section 3 algorithm

If the post has no "name" property
or has a "name" property with an empty string value (or no value)
Then it is a note post.
Take the first non-empty value of the "name" property
Trim all leading/trailing whitespace
Collapse all sequences of internal whitespace to a single space (0x20) character each
Do the same with the content
If this processed "name" property value is NOT a prefix of the processed content,
Then it is an article post.
[Else] It is a note post.

@tantek
Copy link
Owner

tantek commented Feb 14, 2017

Good editorial improvement.

@tantek tantek closed this as completed in de51419 Feb 14, 2017
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

No branches or pull requests

2 participants