mdn / express-locallibrary-tutorial

Local Library website written in NodeJS/Express; example for the MDN server-side development NodeJS module: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs.
Creative Commons Zero v1.0 Universal
1.23k stars 697 forks source link

Express case sensitive #206

Closed hamishwillee closed 1 year ago

hamishwillee commented 1 year ago

This makes the check for whether or not to create a new genre case insensitive - without this you can create fantasy, FANTASY, FaNtAsY and so on.

The check only applies to genre. It doesn't make sense to apply it to Author because we might have two authors with same name, ditto for books. It might apply to bookInstances I guess, but not necessary.

This comes from contributor in https://github.com/mdn/content/pull/27648