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

validate page name #7

Closed
shokai opened this issue Apr 10, 2016 · 2 comments
Closed

validate page name #7

shokai opened this issue Apr 10, 2016 · 2 comments

Comments

@shokai
Copy link
Owner

shokai commented Apr 10, 2016

invalid charcters

  • # \r \n
  • / in wikiname
  • url encoded chars
  • space on head/tail

valid

  • ?
  • a-zA-Z0-9_

reserved words

  • auth
  • login
  • logout
  • api
  • config
@shokai
Copy link
Owner Author

shokai commented Apr 19, 2016

npmのpackagenameで使われている、URL friendlyな文字列かどうかの判定が参考になりそう
https://github.com/npm/validate-npm-package-name
https://github.com/npm/validate-npm-package-name/blob/master/index.js

@shokai
Copy link
Owner Author

shokai commented Apr 24, 2016

validatorはできたので

  • mongooseのvalidator
  • clientでのroute action
  • wiki syntaxで禁止ページへのリンクを作らない

やってみよう

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant