mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
FIX: be more tactical with replacing markdown chars
* instead of using encodeURIComponent in imageNameFromFileName, we just replace the bad characters that we wanted to get rid of in the first place where we introduced encodeURIComponent. as per review
This commit is contained in:
@ -198,7 +198,7 @@ QUnit.test("getUploadMarkdown", assert => {
|
||||
);
|
||||
assert.equal(
|
||||
testUploadMarkdown("[foo|bar].png"),
|
||||
""
|
||||
""
|
||||
);
|
||||
assert.equal(
|
||||
testUploadMarkdown("file name with space.png"),
|
||||
|
Reference in New Issue
Block a user