Changeset 82684 in spip-zone


Ignore:
Timestamp:
May 22, 2014, 5:48:37 PM (5 years ago)
Author:
cedric@…
Message:

bugfix : des espaces indesirables glisses apres les \u... lors d'une maintenance precedente

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/twitter/trunk/js/twidget-dev.js

    r82683 r82684  
    7777        twttr.txt.regexen.spaces = c("["+d.join("")+"]");
    7878        twttr.txt.regexen.punct = /\!'#%&'\(\)*\+,\\\-\.\/:;<=>\?@\[\]\^_{|}~/;
    79         twttr.txt.regexen.atSigns = /[@\u00ef\u00bc ]/;
     79        twttr.txt.regexen.atSigns = /[@\u00ef\u00bc]/;
    8080        twttr.txt.regexen.extractMentions = c(/(^|[^a-zA-Z0-9_])(#{atSigns})([a-zA-Z0-9_]{1,20})(?=(.|$))/g);
    8181        twttr.txt.regexen.extractReply = c(/^(?:#{spaces})*#{atSigns}([a-zA-Z0-9_]{1,20})/);
     
    110110        g(d, 12347, 12347);
    111111        twttr.txt.regexen.nonLatinHashtagChars = c(d.join(""));
    112         twttr.txt.regexen.latinAccentChars = c("\u00c3\u20ac\u00c3\u0081\u00c3\u201a\u00c3\u0192\u00c3\u201e\u00c3\u2026\u00c3\u2020\u00c3\u2021\u00c3\u02c6\u00c3\u2030\u00c3\u0160\u00c3\u2039\u00c3\u0152\u00c3\u008d\u00c3\u017d\u00c3\u008f\u00c3\u0090\u00c3\u2018\u00c3\u2019\u00c3\u201c\u00c3\u201d\u00c3\u2022\u00c3\u2013\u00c3\u02dc\u00c3\u2122\u00c3\u0161\u00c3\u203a\u00c3\u0153\u00c3\u009d\u00c3\u017e\u00c3\u0178\u00c3 \u00c3\u00a1\u00c3\u00a2\u00c3\u00a3\u00c3\u00a4\u00c3\u00a5\u00c3\u00a6\u00c3\u00a7\u00c3\u00a8\u00c3\u00a9\u00c3\u00aa\u00c3\u00ab\u00c3\u00ac\u00c3\u00ad\u00c3\u00ae\u00c3\u00af\u00c3\u00b0\u00c3\u00b1\u00c3\u00b2\u00c3\u00b3\u00c3\u00b4\u00c3\u00b5\u00c3\u00b6\u00c3\u00b8\u00c3\u00b9\u00c3\u00ba\u00c3\u00bb\u00c3\u00bc\u00c3\u00bd\u00c3\u00be\u00c5\u0178\\303\\277");
     112        twttr.txt.regexen.latinAccentChars = c("\u00c3\u20ac\u00c3\u0081\u00c3\u201a\u00c3\u0192\u00c3\u201e\u00c3\u2026\u00c3\u2020\u00c3\u2021\u00c3\u02c6\u00c3\u2030\u00c3\u0160\u00c3\u2039\u00c3\u0152\u00c3\u008d\u00c3\u017d\u00c3\u008f\u00c3\u0090\u00c3\u2018\u00c3\u2019\u00c3\u201c\u00c3\u201d\u00c3\u2022\u00c3\u2013\u00c3\u02dc\u00c3\u2122\u00c3\u0161\u00c3\u203a\u00c3\u0153\u00c3\u009d\u00c3\u017e\u00c3\u0178\u00c3\u00c3\u00a1\u00c3\u00a2\u00c3\u00a3\u00c3\u00a4\u00c3\u00a5\u00c3\u00a6\u00c3\u00a7\u00c3\u00a8\u00c3\u00a9\u00c3\u00aa\u00c3\u00ab\u00c3\u00ac\u00c3\u00ad\u00c3\u00ae\u00c3\u00af\u00c3\u00b0\u00c3\u00b1\u00c3\u00b2\u00c3\u00b3\u00c3\u00b4\u00c3\u00b5\u00c3\u00b6\u00c3\u00b8\u00c3\u00b9\u00c3\u00ba\u00c3\u00bb\u00c3\u00bc\u00c3\u00bd\u00c3\u00be\u00c5\u0178\\303\\277");
    113113        twttr.txt.regexen.endScreenNameMatch = c(/^(?:#{atSigns}|[#{latinAccentChars}]|:\/\/)/);
    114114        twttr.txt.regexen.hashtagBoundary = c(/(?:^|$|#{spaces}|[\u00e3\u20ac\u0152\u00e3\u20ac\u008d\u00e3\u20ac\u201a\u00e3\u20ac\u0081.,!\u00ef\u00bc\u0081?\u00ef\u00bc\u0178:;"'])/);
     
    116116        twttr.txt.regexen.hashtagAlphaNumeric = c(/[a-z0-9_#{latinAccentChars}#{nonLatinHashtagChars}]/i);
    117117        twttr.txt.regexen.autoLinkHashtags = c(/(#{hashtagBoundary})(#|\u00ef\u00bc\u0192)(#{hashtagAlphaNumeric}*#{hashtagAlpha}#{hashtagAlphaNumeric}*)/gi);
    118         twttr.txt.regexen.autoLinkUsernamesOrLists = /(^|[^a-zA-Z0-9_]|RT:?)([@\u00ef\u00bc ]+)([a-zA-Z0-9_]{1,20})(\/[a-zA-Z][a-zA-Z0-9_\-]{0,24})?/g;
     118        twttr.txt.regexen.autoLinkUsernamesOrLists = /(^|[^a-zA-Z0-9_]|RT:?)([@\u00ef\u00bc]+)([a-zA-Z0-9_]{1,20})(\/[a-zA-Z][a-zA-Z0-9_\-]{0,24})?/g;
    119119        twttr.txt.regexen.autoLinkEmoticon = /(8\-\#|8\-E|\+\-\(|\`\@|\`O|\&lt;\|:~\(|\}:o\{|:\-\[|\&gt;o\&lt;|X\-\/|\[:-\]\-I\-|\/\/\/\/\u00c3\u2013\\\\\\\\|\(\|:\|\/\)|\u00e2\u02c6\u2018:\*\)|\( \| \))/g;
    120         twttr.txt.regexen.validPrecedingChars = c(/(?:[^-\/"'!=A-Za-z0-9_@\u00ef\u00bc \.]|^)/);
     120        twttr.txt.regexen.validPrecedingChars = c(/(?:[^-\/"'!=A-Za-z0-9_@\u00ef\u00bc\.]|^)/);
    121121        twttr.txt.regexen.invalidDomainChars = k("\u00a0#{punct}#{spaces_group}", twttr.txt.regexen);
    122122        twttr.txt.regexen.validDomainChars = c(/[^#{invalidDomainChars}]/);
     
    606606                                        if (a.needle.entities.media)options.urlEntities = options.urlEntities.concat(a.needle.entities.media)
    607607                                }
    608                                 return f && f.txt ? f.txt.autoLink(a.needle.text, options).replace(/([@\ufffd ]+)(<[^>]*>)/g, "$2$1") : a.needle.text
     608                                return f && f.txt ? f.txt.autoLink(a.needle.text, options).replace(/([@\ufffd]+)(<[^>]*>)/g, "$2$1") : a.needle.text
    609609                        }};
    610610                        d.prototype = {start: function (){
Note: See TracChangeset for help on using the changeset viewer.