diff options
| author | Sævar Öfjörð Magnússon <saevar@overcast.io> | 2017-10-09 10:40:32 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-12 11:50:20 -0400 |
| commit | f90be0a83ef5aa333b19e259faab73ee117d5339 (patch) | |
| tree | 95f03d121e4545b2beab8c200355ac2f6de3da8c /js_tests | |
| parent | e8649ae36867d8d7233c9ec5e33d9cff7930a006 (diff) | |
Fixed #28688 -- Made admin's URLify.js skip removal of English words if non-ASCII chars are present.
Diffstat (limited to 'js_tests')
| -rw-r--r-- | js_tests/admin/URLify.test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js_tests/admin/URLify.test.js b/js_tests/admin/URLify.test.js index fafa9af113..cc738bc4ad 100644 --- a/js_tests/admin/URLify.test.js +++ b/js_tests/admin/URLify.test.js @@ -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'); +}); |
