Skip to content

Commit 71034a7

Browse files
authored
Merge pull request #10 from rvramesh/master
When there is no placeholder in the template passed to String.Format it should return the original template.
2 parents e6c887c + 883e02c commit 71034a7

File tree

6 files changed

+4460
-809
lines changed

6 files changed

+4460
-809
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var String = (function () {
5959
return String.format(String.regexNumber, format, args);
6060
if (format.match(String.regexObject))
6161
return String.format(String.regexObject, format, args, true);
62-
return String.Empty;
62+
return format;
6363
}
6464
catch (e) {
6565
console.log(e);

dist/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class String {
6060
if (format.match(String.regexObject))
6161
return String.format(String.regexObject, format, args, true);
6262

63-
return String.Empty;
63+
return format;
6464
}
6565
catch (e) {
6666
console.log(e);

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ gulp.task("rename", function() {
1919
.pipe(gulp.dest("dist"));
2020
});
2121

22-
gulp.task("compress", ["rename"], function(cb) {
22+
gulp.task("compress", gulp.series("rename"), function(cb) {
2323
return pump([gulp.src("dist/*.min.js"), uglify(), gulp.dest("dist")], cb);
2424
});

0 commit comments

Comments
 (0)