mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 04:23:37 +08:00
e4881290be
When uploading an image file with dots in the filename we were splitting the string on dots and getting the last of the split items as the extension-less filename. However this did not work with filenames that have dots. We now just remove the extension using substr. |
||
---|---|---|
.. | ||
acceptance | ||
admin | ||
components | ||
controllers | ||
ember | ||
fixtures | ||
helpers | ||
initializers | ||
lib | ||
mixins | ||
models | ||
widgets | ||
plugin_tests.js.erb | ||
test_helper.js |