Skip to content

Commit d8b374d

Browse files
committed
Merge pull request christianbach#11 from iajrz/master
Fixed bug introduced in #f125bc53
2 parents e29e181 + 527ba7c commit d8b374d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: jquery.tablesorter.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -980,10 +980,9 @@
980980
if (c.dateFormat == "us") {
981981
// reformat the string in ISO format
982982
s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$1/$2");
983-
983+
}
984984
if (c.dateFormat == "pt") {
985-
s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$2/$1");
986-
985+
s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$2/$1");
987986
} else if (c.dateFormat == "uk") {
988987
// reformat the string in ISO format
989988
s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$2/$1");

0 commit comments

Comments
 (0)