ChaseFlorell / jQuery.ProfanityFilter

filter out profane words on the client
https://chaseflorell.github.io/jQuery.ProfanityFilter/demo/
MIT License
110 stars 42 forks source link

Bower Package Error: Case Mismatch JS File Specification #19

Closed edmondchui closed 8 years ago

edmondchui commented 9 years ago

In the bower.json, the main section is specified like this:

 "main": "jQuery.ProfanityFilter.js",

When I do grunt wiredep, jQuery.ProfanityFilter.js is injected to my index.html. However, the actually filename that comes with the jQuery plugin is jquery.profanityfilter.js in all lowercase. As a result, I keep getting file not found from my server (as well as on my phone too when I package it as a cordova app).

I managed to fix the issue by manually changing my index.html to reference the JS file in all lowercase. However, this would break next time I run grunt wiredep again.

Please fix the bower.json file and change the JS file reference in the main section to all lowercase.

Thanks, Edmond