mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #28295 -- Made admin's URLify.js trim trailing hyphens.
This commit is contained in:
@@ -19,3 +19,7 @@ QUnit.test('strip non-URL characters', function(assert) {
|
||||
QUnit.test('merge adjacent whitespace', function(assert) {
|
||||
assert.strictEqual(URLify('D silent', 8, true), 'd-silent');
|
||||
});
|
||||
|
||||
QUnit.test('trim trailing hyphens', function(assert) {
|
||||
assert.strictEqual(URLify('D silent always', 9, true), 'd-silent');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user