Repository: cordova-docs Updated Branches: refs/heads/master 2e9c79873 -> 8d1dbc685
Replacing punctuation in header IDs with hyphens. Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/8d1dbc68 Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/8d1dbc68 Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/8d1dbc68 Branch: refs/heads/master Commit: 8d1dbc685df95499f8b3336699418f74593bb639 Parents: 2e9c798 Author: Dmitry Blotsky <[email protected]> Authored: Wed Feb 17 15:09:11 2016 -0800 Committer: Dmitry Blotsky <[email protected]> Committed: Wed Feb 17 15:09:11 2016 -0800 ---------------------------------------------------------------------- www/static/js/docs.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/8d1dbc68/www/static/js/docs.js ---------------------------------------------------------------------- diff --git a/www/static/js/docs.js b/www/static/js/docs.js index efb2d93..c2221cc 100644 --- a/www/static/js/docs.js +++ b/www/static/js/docs.js @@ -25,10 +25,11 @@ $(document).ready(function () { // a better regex would have been /[^\d\s\w]/ug, but the 'u' flag // (Unicode) is not supported in some browsers, and we support // many languages that use Unicode characters - text = text.replace(/[\[\]\(\)\=\+\?]/g, ' '); + text = text.replace(/[\[\]\(\)\=\+\?\.\,]/g, ' '); // trim whitespace and replace runs of whitespace with single dashes - text = text.trim().replace(/ +/g, '-'); + text = text.trim(); + text = text.replace(/ +/g, '-'); return text; } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
