Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escapes regex double braces (increases compatibility) #25

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions jquery.blast.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

/* Used to decode both the output of encodePunctuation() and punctuation that has been manually escaped by users. */
function decodePunctuation (text) {
return text.replace(/{{(\d{1,3})}}/g, function(fullMatch, subMatch) {
return text.replace(/\{\{(\d{1,3})\}\}/g, function(fullMatch, subMatch) {
return String.fromCharCode(subMatch);
});
}
Expand Down Expand Up @@ -476,4 +476,4 @@
*****************/

/* In <=IE7, when Blast is called on the same element more than once with opts.stripHTMLTags=false, calls after the first may not target the entirety of the element and/or may
inject excess spacing between inner text parts due to <=IE7's faulty node normalization. */
inject excess spacing between inner text parts due to <=IE7's faulty node normalization. */