mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #28688 -- Made admin's URLify.js skip removal of English words if non-ASCII chars are present.
This commit is contained in:
committed by
Tim Graham
parent
e8649ae368
commit
f90be0a83e
@@ -23,3 +23,8 @@ QUnit.test('merge adjacent whitespace', function(assert) {
|
||||
QUnit.test('trim trailing hyphens', function(assert) {
|
||||
assert.strictEqual(URLify('D silent always', 9, true), 'd-silent');
|
||||
});
|
||||
|
||||
QUnit.test('do not remove English words if the string contains non-ASCII', function(assert) {
|
||||
// If removing English words wasn't skipped, the last 'a' would be removed.
|
||||
assert.strictEqual(URLify('Kaupa-miða', 255, true), 'kaupa-miða');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user